title: Why Incorrect Comparator(Java) Does not throw Exception "Comparison method violates general contract"
body: <p>I think below implementation of a comprator is wrong. It will got give me a sorted order of Strings. But when i use this implementation to sort a      List 
  it does not throw the below exception : 
  "java.lang.IllegalArgumentException: Comparison method violates its general contract!"</p>
  
  <p>Question : Why above Exception is not thrown by 
        Collections.sort(list, new WrongComparator()) 
   method call ?</p>
  
  <pre><code> public class WrongComparator implements Comparator&lt;String&gt; {
  
     public int compare(String o1, String o2){
       return 1;
     }
   }
  </code></pre>