title: Bad practice - Class defines compareTo(...) and uses Object.equals()
body: <p>Wondering what needs to be done for listed method</p>
  
  <pre><code> public final int compareTo(final FieldDTO o) {
          return o.available.compareTo(this.available);
  </code></pre>
  
  <p>its throwing exception on line 2 stating 
   Bad practice - Class defines compareTo(...) and uses Object.equals()     16 days<br>
  field defines compareTo(FieldDTO) and uses Object.equals()</p>
  
  <p>Not sure how should i handle this.
  Thanks in advance.</p>