Polish
Closes gh-1581
This commit is contained in:
@@ -24,7 +24,6 @@ import org.springframework.asm.MethodVisitor;
|
||||
import org.springframework.expression.EvaluationContext;
|
||||
import org.springframework.expression.spel.CodeFlow;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.util.ClassUtils;
|
||||
import org.springframework.util.NumberUtils;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ public class StandardTypeComparator implements TypeComparator {
|
||||
return true;
|
||||
}
|
||||
if (left instanceof Comparable && right instanceof Comparable) {
|
||||
Class<?> ancestor = ClassUtils.determineCommonAncestor(left.getClass(), right.getClass());
|
||||
Class<?> ancestor = ClassUtils.determineCommonAncestor(left.getClass(), right.getClass());
|
||||
return ancestor != null && Comparable.class.isAssignableFrom(ancestor);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user