mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
annotations
This commit is contained in:
@@ -33,11 +33,10 @@ import javax.swing.*;
|
||||
|
||||
public class MagicNumberInspection extends BaseInspection {
|
||||
|
||||
/**
|
||||
* @noinspection PublicField
|
||||
*/
|
||||
@SuppressWarnings("PublicField")
|
||||
public boolean ignoreInHashCode = true;
|
||||
|
||||
@SuppressWarnings("PublicField")
|
||||
public boolean ignoreInTestCode = false;
|
||||
|
||||
@Override
|
||||
|
||||
+4
-2
@@ -42,7 +42,7 @@ public class TooBroadCatchInspection extends BaseInspection {
|
||||
@SuppressWarnings({"PublicField"})
|
||||
public boolean onlyWarnOnRootExceptions = false;
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@SuppressWarnings("PublicField")
|
||||
public boolean ignoreInTestCode = false;
|
||||
|
||||
@Override
|
||||
@@ -229,7 +229,9 @@ public class TooBroadCatchInspection extends BaseInspection {
|
||||
final List<PsiClass> maskedExceptions = findMaskedExceptions(exceptionsThrown, exceptionsCaught, type);
|
||||
if (!maskedExceptions.isEmpty()) {
|
||||
final PsiTypeElement typeElement = parameter.getTypeElement();
|
||||
registerError(typeElement, maskedExceptions);
|
||||
if (typeElement != null) {
|
||||
registerError(typeElement, maskedExceptions);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ public class TooBroadThrowsInspection extends BaseInspection {
|
||||
@SuppressWarnings({"PublicField"})
|
||||
public boolean onlyWarnOnRootExceptions = false;
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@SuppressWarnings("PublicField")
|
||||
public boolean ignoreInTestCode = false;
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user