From dd44478c2f37b53ac18ef24726600c14053feaf3 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Thu, 14 Nov 2013 21:24:54 +0400 Subject: [PATCH] Remove "StaticMethodReferencedViaSubclass" warning mute --- .../org/jetbrains/jet/plugin/completion/CompletionSession.java | 2 -- .../jet/plugin/completion/JetKeywordCompletionContributor.java | 1 - .../plugin/configuration/ui/AbsentJdkAnnotationsComponent.java | 1 - .../src/org/jetbrains/jet/plugin/highlighter/JetPsiChecker.java | 2 -- 4 files changed, 6 deletions(-) diff --git a/idea/src/org/jetbrains/jet/plugin/completion/CompletionSession.java b/idea/src/org/jetbrains/jet/plugin/completion/CompletionSession.java index 611ddc53254..18d8fb291e3 100644 --- a/idea/src/org/jetbrains/jet/plugin/completion/CompletionSession.java +++ b/idea/src/org/jetbrains/jet/plugin/completion/CompletionSession.java @@ -68,7 +68,6 @@ class CompletionSession { inDescriptor = scope != null ? scope.getContainingDeclaration() : null; - //noinspection StaticMethodReferencedViaSubclass this.jetResult = new JetCompletionResultSet( WeigherPackage.addJetSorting(result, parameters), resolveSession, @@ -133,7 +132,6 @@ class CompletionSession { public void completeSmart() { assert parameters.getCompletionType() == CompletionType.SMART; - //noinspection StaticMethodReferencedViaSubclass final SmartCompletionData data = CompletionPackage.buildSmartCompletionData(jetReference.getExpression(), getResolveSession()); if (data != null) { addReferenceVariants(new Condition() { diff --git a/idea/src/org/jetbrains/jet/plugin/completion/JetKeywordCompletionContributor.java b/idea/src/org/jetbrains/jet/plugin/completion/JetKeywordCompletionContributor.java index 2646a32f929..e6515ac1bf7 100644 --- a/idea/src/org/jetbrains/jet/plugin/completion/JetKeywordCompletionContributor.java +++ b/idea/src/org/jetbrains/jet/plugin/completion/JetKeywordCompletionContributor.java @@ -222,7 +222,6 @@ public class JetKeywordCompletionContributor extends CompletionContributor { @Override protected void addCompletions(@NotNull CompletionParameters parameters, ProcessingContext context, @NotNull CompletionResultSet result) { - //noinspection StaticMethodReferencedViaSubclass WeigherPackage.addJetSorting(result, parameters) .withPrefixMatcher(new SimplePrefixMatcher(result.getPrefixMatcher().getPrefix())) .addAllElements(elements); diff --git a/idea/src/org/jetbrains/jet/plugin/configuration/ui/AbsentJdkAnnotationsComponent.java b/idea/src/org/jetbrains/jet/plugin/configuration/ui/AbsentJdkAnnotationsComponent.java index 17dba27700d..22fe4d89930 100644 --- a/idea/src/org/jetbrains/jet/plugin/configuration/ui/AbsentJdkAnnotationsComponent.java +++ b/idea/src/org/jetbrains/jet/plugin/configuration/ui/AbsentJdkAnnotationsComponent.java @@ -121,7 +121,6 @@ public class AbsentJdkAnnotationsComponent extends AbstractProjectComponent { return false; } - @SuppressWarnings("StaticMethodReferencedViaSubclass") boolean isAndroidSdk = NotificationsPackage.isAndroidSdk(sdk); return !(isAndroidSdk && !KotlinRuntimeLibraryUtil.androidSdkAnnotationsArePresent(sdk)); } diff --git a/idea/src/org/jetbrains/jet/plugin/highlighter/JetPsiChecker.java b/idea/src/org/jetbrains/jet/plugin/highlighter/JetPsiChecker.java index 5f8b9e212a7..b3a9f347844 100644 --- a/idea/src/org/jetbrains/jet/plugin/highlighter/JetPsiChecker.java +++ b/idea/src/org/jetbrains/jet/plugin/highlighter/JetPsiChecker.java @@ -102,10 +102,8 @@ public class JetPsiChecker implements Annotator, HighlightRangeExtension { AnalyzeExhaust analyzeExhaust = AnalyzerFacadeWithCache.analyzeFileWithCache(file); if (analyzeExhaust.isError()) { - //noinspection StaticMethodReferencedViaSubclass HighlighterPackage.updateHighlightingResult(file, true); - // Force stop highlighting annotate cycle throw new ProcessCanceledException(analyzeExhaust.getError()); }