Satisfying what needs to be done for the listed methods
public final int compareTo(final FieldDTO o) { return o.available.compareTo(this.available);
exception of its exception in line 2 Bad practice - the class defines compareTo (...) and uses Object.equals () 16 days
the field defines compareTo (FieldDTO) and uses Object.equals ()
I donβt know how I should deal with this. Thanks in advance.
source share