Reports == or equals() calls that compare two java.math.BigDecimal numbers. This is normally a mistake, as two java.math.BigDecimal numbers are only equal if they are equal in both value and scale.

Example:


  // condition is false
  val condition = BigDecimal("2.0") ==
      BigDecimal("2.00")

After the quick-fix is applied:


  // condition is true
  val condition = BigDecimal("2.0").compareTo(
      BigDecimal("2.00")) == 0