String comparison using .equals() in ASM ClassReader [SPR-12382] #16990
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Ahn Jung Su opened SPR-12382 and commented
Comparison of String objects using == or != in org.springframework.asm.ClassReader.readMethod(ClassVisitor, Context, int)
if (mw.cw.cr == this && signature==mw.signature) {
...
}
Actually Type of signature and mw.signature are String.
It is better to use .equals()
Affects: 4.1.1
Issue Links:
Referenced from: pull request #678, and commits cb09513
The text was updated successfully, but these errors were encountered: