Call to equals() comparing different types
I have found the bug with the FindBugs tool, the description is: Call to equals() comparing different types This method calls equals(Object) on two references of different class types with no common subclasses. Therefore, the objects being compared are unlikely to be members of the same class at runtime (unless some application classes were not analyzed, or dynamic class loading can occur at runtime). According to the contract of equals(), objects of different classes should always compare as unequal; therefore, according to the contract defined by java.lang.Object.equals(Object), the result of this comparison will always be false at runtime. Bug kind and pattern: EC - EC_UNRELATED_TYPES Change-Id: I2d9521e8fd67d249af4c9907e90f2f019336265c
Loading
Please register or sign in to comment