You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlikely argument type for equals(): TB seems to be unrelated to TA
4. INFO in bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/expression/CoercingComparator.java (at line 327)
return o2.equals(o1);
^^
Unlikely argument type for equals(): TA seems to be unrelated to TB
5. INFO in bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/expression/CoercingComparator.java (at line 336)
return o1.equals(o2);
^^
Unlikely argument type for equals(): TB seems to be unrelated to TA
The text was updated successfully, but these errors were encountered:
Good question, the class is maybe doing some strange things the compiler does not understand or there is a real error...
I just noticed in the past that "Unlikely argument type" was often a sign that I did something by accident than by intend.
In this case I think the compiler is concerned because of <TA extends Object, TB extends Object> it assumes different types but using equals method of object that never returns true if not o1 == o2 ...
From the compiler logs
The text was updated successfully, but these errors were encountered: