title: Sonar - Conditions should not unconditionally evaluate to "TRUE" or to "FALSE"
body: <p>Hi I have written below code for to check to list equal or not</p>
  
  <pre><code> private  boolean equalTypeLists(List&lt;Type&gt; one, List&lt;Type&gt; two){
      if (one == null &amp;&amp; two == null){
          return true;
      }
      if((one == null &amp;&amp; two != null)
              || one != null &amp;&amp; two == null
              || one.size() != two.size()){
          return false;
      }
      one = new ArrayList&lt;&gt;(one);
      two = new ArrayList&lt;&gt;(two);
  
      Collections.sort(one, new Comparator&lt;Type&gt;() {
          @Override
          public int compare(Type o1, Type o2) {
              return o1.getValue().compareTo(o2.getValue());
          }
      });
      Collections.sort(two, new Comparator&lt;Type&gt;() {
          @Override
          public int compare(Type o1, Type o2) {
              return o1.getValue().compareTo(o2.getValue());
          }
      });
  
      return checkForTwoEqualTypeLists(one,two);
  }
  </code></pre>
  
  <p>But Sonar is giving Blocker message "Conditions should not unconditionally evaluate to "TRUE" or to "FALSE"" for below line of code</p>
  
  <pre><code>if((one == null &amp;&amp; two != null)
          || one != null &amp;&amp; two == null
          || one.size() != two.size()){
      return false;
  }
  </code></pre>
  
  <p>Please could you help me to resolve above scenario.</p>