Remove "StaticMethodReferencedViaSubclass" warning mute

This commit is contained in:
Nikolay Krasko
2013-11-14 21:24:54 +04:00
parent 74c321ba73
commit dd44478c2f
4 changed files with 0 additions and 6 deletions
@@ -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<DeclarationDescriptor>() {
@@ -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);
@@ -121,7 +121,6 @@ public class AbsentJdkAnnotationsComponent extends AbstractProjectComponent {
return false;
}
@SuppressWarnings("StaticMethodReferencedViaSubclass")
boolean isAndroidSdk = NotificationsPackage.isAndroidSdk(sdk);
return !(isAndroidSdk && !KotlinRuntimeLibraryUtil.androidSdkAnnotationsArePresent(sdk));
}
@@ -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());
}