[#KSENROLL-14664] FindBugs: Suspicious comparison

advertisement
[KSENROLL-14664] FindBugs: Suspicious comparison of object references
Created: 29/Aug/14 Updated: 29/Aug/14 Resolved: 29/Aug/14
Status:
Project:
Component/s:
Affects
Version/s:
Fix Version/s:
Security Level:
Closed
KS Enrollment
Core Technical
ENR-FR2-M2
Type:
Reporter:
Resolution:
Labels:
Remaining
Estimate:
Time Spent:
Original
Estimate:
Bug Fix
Haroon Rafique (Inactive)
Fixed
None
Not Specified
ENR-FR2-M2
Public (Public: Anyone can view)
Priority:
Assignee:
Votes:
Critical
Haroon Rafique (Inactive)
0
Not Specified
Not Specified
Code Cleanup
KS Theme:
KS ENR Product Course Offering
Stream:
Description
Suspicious reference comparison
This method compares two reference values using the == or != operator, where the correct way
to compare instances of this type is generally with the equals() method. It is possible to create
distinct instances that are equal but do not compare as == since they are different objects.
Examples of classes which should generally not be compared by reference are java.lang.Integer,
java.lang.Float, etc.
Generated at Tue Feb 09 13:57:15 CST 2016 using JIRA 6.1.5#6160sha1:a61a0fc278117a0da0ec9b89167b8f29b6afdab2.
Download