mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:30:28 +00:00
Replace isAssignableFrom() with isInstance() where feasible
Closes gh-36899 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ public class OperatorInstanceof extends Operator {
|
||||
result = BooleanTypedValue.FALSE; // null is not an instanceof anything
|
||||
}
|
||||
else {
|
||||
result = BooleanTypedValue.forValue(rightClass.isAssignableFrom(leftValue.getClass()));
|
||||
result = BooleanTypedValue.forValue(rightClass.isInstance(leftValue));
|
||||
}
|
||||
this.type = rightClass;
|
||||
if (rightOperand instanceof TypeReference) {
|
||||
|
||||
Reference in New Issue
Block a user