Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d7dbf328 authored by László Dávid's avatar László Dávid
Browse files

Call to equals() comparing different types

FindBugs description:

Call to String.equals(DataUsageSummary$AppItem)
at DataUsageSummary.java [line 1173]
in method updateDetailData()

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: I8d3d9239b2f296a89968e20381f82e499f43f5d6
parent 71038017
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment