diff options
Diffstat (limited to 'java/java-impl/src/com/intellij/codeInspection/deadCode')
3 files changed, 4 insertions, 4 deletions
diff --git a/java/java-impl/src/com/intellij/codeInspection/deadCode/DeadHTMLComposer.java b/java/java-impl/src/com/intellij/codeInspection/deadCode/DeadHTMLComposer.java index e75d1b142069..ead1b1fa8860 100644 --- a/java/java-impl/src/com/intellij/codeInspection/deadCode/DeadHTMLComposer.java +++ b/java/java-impl/src/com/intellij/codeInspection/deadCode/DeadHTMLComposer.java @@ -43,8 +43,7 @@ public class DeadHTMLComposer extends HTMLComposerImpl { private final InspectionTool myTool; private final HTMLJavaHTMLComposer myComposer; - public DeadHTMLComposer(InspectionTool tool) { - super(); + public DeadHTMLComposer(@NotNull InspectionTool tool) { myTool = tool; myComposer = getExtension(HTMLJavaHTMLComposer.COMPOSER); } @@ -340,7 +339,7 @@ public class DeadHTMLComposer extends HTMLComposerImpl { private void appendCallesList(RefElement element, StringBuffer buf, Set<RefElement> mentionedElements, boolean appendCallees){ final Set<RefElement> possibleChildren = getPossibleChildren(new RefElementNode(element, myTool), element); - if (possibleChildren.size() > 0) { + if (!possibleChildren.isEmpty()) { if (appendCallees){ appendHeading(buf, InspectionsBundle.message("inspection.export.results.callees")); } diff --git a/java/java-impl/src/com/intellij/codeInspection/deadCode/RefUnreachableFilter.java b/java/java-impl/src/com/intellij/codeInspection/deadCode/RefUnreachableFilter.java index 650e7c527edf..5984cf16b71a 100644 --- a/java/java-impl/src/com/intellij/codeInspection/deadCode/RefUnreachableFilter.java +++ b/java/java-impl/src/com/intellij/codeInspection/deadCode/RefUnreachableFilter.java @@ -30,6 +30,7 @@ import com.intellij.codeInspection.util.RefFilter; import org.jetbrains.annotations.NotNull; public class RefUnreachableFilter extends RefFilter { + @NotNull protected InspectionTool myTool; public RefUnreachableFilter(@NotNull InspectionTool tool) { diff --git a/java/java-impl/src/com/intellij/codeInspection/deadCode/UnusedDeclarationInspection.java b/java/java-impl/src/com/intellij/codeInspection/deadCode/UnusedDeclarationInspection.java index 70f22c0765fc..54a42a66f95b 100644 --- a/java/java-impl/src/com/intellij/codeInspection/deadCode/UnusedDeclarationInspection.java +++ b/java/java-impl/src/com/intellij/codeInspection/deadCode/UnusedDeclarationInspection.java @@ -515,7 +515,7 @@ public class UnusedDeclarationInspection extends FilteringInspectionTool { } private static class StrictUnreferencedFilter extends UnreferencedFilter { - private StrictUnreferencedFilter(final InspectionTool tool) { + private StrictUnreferencedFilter(@NotNull InspectionTool tool) { super(tool); } |