Sonar lint : "compareTo" results should not be checked for specific values
<p>I am compare two values and getting sonar lint throwing <code>"Only the sign of the result should be examined" this issue</code>. </p>

<p>Code : </p>

<pre><code>if (recBalanceAmt.compareTo(recRolloverEligibility) == 1) {
     recExpAmt = recBalanceAmt.subtract(recRolloverEligibility);
}
</code></pre>

<p>How to resolve this issue?</p>