Browse Source

Avoid redefining getSpecificTargetClasses() in [Property|Index]Accessor

pull/32703/head
Sam Brannen 2 years ago
parent
commit
461d7a82f6
  1. 12
      spring-expression/src/main/java/org/springframework/expression/IndexAccessor.java
  2. 12
      spring-expression/src/main/java/org/springframework/expression/PropertyAccessor.java

12
spring-expression/src/main/java/org/springframework/expression/IndexAccessor.java

@ -45,18 +45,6 @@ import org.springframework.lang.Nullable; @@ -45,18 +45,6 @@ import org.springframework.lang.Nullable;
*/
public interface IndexAccessor extends TargetedAccessor {
/**
* Get the set of classes for which this index accessor should be called.
* <p>Returning {@code null} or an empty array indicates this is a generic
* index accessor that can be called in an attempt to access an index on any
* type.
* @return an array of classes that this index accessor is suitable for
* (or {@code null} or an empty array if a generic index accessor)
*/
@Override
@Nullable
Class<?>[] getSpecificTargetClasses();
/**
* Determine if this index accessor is able to read a specified index on a
* specified target object.

12
spring-expression/src/main/java/org/springframework/expression/PropertyAccessor.java

@ -43,18 +43,6 @@ import org.springframework.lang.Nullable; @@ -43,18 +43,6 @@ import org.springframework.lang.Nullable;
*/
public interface PropertyAccessor extends TargetedAccessor {
/**
* Get the set of classes for which this property accessor should be called.
* <p>Returning {@code null} or an empty array indicates this is a generic
* property accessor that can be called in an attempt to access a property on
* any type.
* @return an array of classes that this property accessor is suitable for
* (or {@code null} if a generic property accessor)
*/
@Override
@Nullable
Class<?>[] getSpecificTargetClasses();
/**
* Called to determine if this property accessor is able to read a specified
* property on a specified target object.

Loading…
Cancel
Save