mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
IJ-CR-2599: remove redundant annotations
GitOrigin-RevId: ca2d126205d5848b27d3e6bb84d92d22b9d08022
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9c16a7331d
commit
b4e9fe3772
@@ -16,7 +16,6 @@ import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.PsiReference;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
import com.intellij.xml.util.XmlStringUtil;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ public class BigDecimalEqualsInspection extends BaseInspection {
|
||||
|
||||
private static class BigDecimalEqualsFix extends InspectionGadgetsFix {
|
||||
@Override
|
||||
public @NotNull @Nls String getFamilyName() {
|
||||
public @NotNull String getFamilyName() {
|
||||
return CommonQuickFixBundle.message("fix.replace.with.x", "compareTo()==0");
|
||||
}
|
||||
|
||||
|
||||
@@ -394,7 +394,7 @@ public class JUnit4AnnotatedMethodInJUnit3TestCaseInspection extends BaseInspect
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull @Nls String getName() {
|
||||
public @NotNull String getName() {
|
||||
return myNewName == null ? getFamilyName()
|
||||
: InspectionGadgetsBundle.message("remove.junit4.test.annotation.and.rename.quickfix", myNewName);
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ public class BoundedWildcardInspection extends AbstractBaseJavaLocalInspectionTo
|
||||
|
||||
boolean wildCardIsUseless = VarianceUtil.wildCardIsUseless(candidate, canBeExtends);
|
||||
ProblemHighlightType type = wildCardIsUseless ? ProblemHighlightType.WEAK_WARNING : ProblemHighlightType.GENERIC_ERROR_OR_WARNING;
|
||||
@Nls String msg = (canBeExtends
|
||||
String msg = (canBeExtends
|
||||
? InspectionGadgetsBundle.message("bounded.wildcard.covariant.descriptor")
|
||||
: InspectionGadgetsBundle.message("bounded.wildcard.contravariant.descriptor")) +
|
||||
(wildCardIsUseless ? " but decided against it" : "");
|
||||
|
||||
Reference in New Issue
Block a user