title: How to fix sonar issues for Reduce the number of conditional operators (5) used in the expression (maximum allowed 3) in java
body: <pre><code>ObjectTest systemError = (ObjectTest ) o;
  //New Code 
  result &amp;= Objects.equals(this.exp1, systemError.exp1);
  result &amp;= Objects.equals(this.exp2, systemError.exp2)  ;
  result &amp;= Objects.equals(this.exp3, systemError.exp3);
  result &amp;= Objects.equals(this.exp4, systemError.exp4);
  result &amp;= Objects.equals(this.exp5, systemError.exp5) ;
  result &amp;= Objects.equals(this.exp6, systemError.exp6);
  return result;
  //Old Code
  return Objects.equals(this.exp, systemError.exp) &amp;&amp;
  Objects.equals(this.exp1, systemError.exp1) &amp;&amp;
  Objects.equals(this.exp2, systemError.exp2) &amp;&amp;
  Objects.equals(this.exp3, systemError.exp3) &amp;&amp;
  Objects.equals(this.exp4, systemError.exp4) &amp;&amp;
  Objects.equals(this.exp5, systemError.exp5) &amp;&amp;
  Objects.equals(this.exp6, systemError.exp6);
  </code></pre>
  
  <p>Does the New code is the solution for Old code ?Can any one shed some confirmation on this.</p>