Java: "'equals()' called on 'BigDecimal'" is no longer a cleanup tool (IDEA-354348)

sind replacing BigDecimal.equals() calls with BigDecimal.compareTo() calls slightly changes the semantics which can cause bugs

GitOrigin-RevId: 2a2d147b0953e1616e028ada8d7de369fe3da0b1
This commit is contained in:
Bas Leijdekkers
2024-09-24 17:01:33 +02:00
committed by intellij-monorepo-bot
parent 7438be23bf
commit 5b375ff7a2
2 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2003-2021 Dave Griffith, Bas Leijdekkers
* Copyright 2003-2024 Dave Griffith, Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@
package com.siyeh.ig.numeric;
import com.intellij.codeInsight.Nullability;
import com.intellij.codeInspection.CleanupLocalInspectionTool;
import com.intellij.codeInspection.CommonQuickFixBundle;
import com.intellij.codeInspection.LocalQuickFix;
import com.intellij.codeInspection.dataFlow.NullabilityUtil;
@@ -38,7 +37,7 @@ import com.siyeh.ig.psiutils.ParenthesesUtils;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
public final class BigDecimalEqualsInspection extends BaseInspection implements CleanupLocalInspectionTool {
public final class BigDecimalEqualsInspection extends BaseInspection {
@Override
@NotNull