mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed bug when UnnecessaryLabel inspections never fire
This commit is contained in:
+2
-6
@@ -105,13 +105,9 @@ public class UnnecessaryLabelOnBreakStatementInspection extends StatementInspect
|
||||
if (currentContainer == null) {
|
||||
return;
|
||||
}
|
||||
final PsiElement containerParent = currentContainer.getParent();
|
||||
if (exitedStatement.equals(containerParent)) {
|
||||
return;
|
||||
if (exitedStatement.equals(currentContainer)) {
|
||||
registerStatementError(statement);
|
||||
}
|
||||
registerStatementError(statement);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-6
@@ -98,13 +98,9 @@ public class UnnecessaryLabelOnContinueStatementInspection extends StatementInsp
|
||||
if (currentContainer == null) {
|
||||
return;
|
||||
}
|
||||
final PsiElement containerParent = currentContainer.getParent();
|
||||
if (continuedStatement.equals(containerParent)) {
|
||||
return;
|
||||
if (continuedStatement.equals(currentContainer)) {
|
||||
registerStatementError(statement);
|
||||
}
|
||||
registerStatementError(statement);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user