-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Overview
For performance reasons, JDK libraries often use == instead of instanceof for primitive array type checks — for example, if (obj.getClass() == char[].class) instead of if (obj instanceof char[]).
The rationale is that there are no type hierarchies for primitive array types. Consequently using instanceof is unnecessary.
We should therefore migrate from instanceof to == where feasible.
Candidates
SynthesizedMergedAnnotationInvocationHandler.cloneArray(Object)ObjectUtils.arrayEquals(Object, Object)
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement