Remove "StaticMethodReferencedViaSubclass" warning mute
This commit is contained in:
@@ -68,7 +68,6 @@ class CompletionSession {
|
|||||||
|
|
||||||
inDescriptor = scope != null ? scope.getContainingDeclaration() : null;
|
inDescriptor = scope != null ? scope.getContainingDeclaration() : null;
|
||||||
|
|
||||||
//noinspection StaticMethodReferencedViaSubclass
|
|
||||||
this.jetResult = new JetCompletionResultSet(
|
this.jetResult = new JetCompletionResultSet(
|
||||||
WeigherPackage.addJetSorting(result, parameters),
|
WeigherPackage.addJetSorting(result, parameters),
|
||||||
resolveSession,
|
resolveSession,
|
||||||
@@ -133,7 +132,6 @@ class CompletionSession {
|
|||||||
public void completeSmart() {
|
public void completeSmart() {
|
||||||
assert parameters.getCompletionType() == CompletionType.SMART;
|
assert parameters.getCompletionType() == CompletionType.SMART;
|
||||||
|
|
||||||
//noinspection StaticMethodReferencedViaSubclass
|
|
||||||
final SmartCompletionData data = CompletionPackage.buildSmartCompletionData(jetReference.getExpression(), getResolveSession());
|
final SmartCompletionData data = CompletionPackage.buildSmartCompletionData(jetReference.getExpression(), getResolveSession());
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
addReferenceVariants(new Condition<DeclarationDescriptor>() {
|
addReferenceVariants(new Condition<DeclarationDescriptor>() {
|
||||||
|
|||||||
@@ -222,7 +222,6 @@ public class JetKeywordCompletionContributor extends CompletionContributor {
|
|||||||
@Override
|
@Override
|
||||||
protected void addCompletions(@NotNull CompletionParameters parameters, ProcessingContext context,
|
protected void addCompletions(@NotNull CompletionParameters parameters, ProcessingContext context,
|
||||||
@NotNull CompletionResultSet result) {
|
@NotNull CompletionResultSet result) {
|
||||||
//noinspection StaticMethodReferencedViaSubclass
|
|
||||||
WeigherPackage.addJetSorting(result, parameters)
|
WeigherPackage.addJetSorting(result, parameters)
|
||||||
.withPrefixMatcher(new SimplePrefixMatcher(result.getPrefixMatcher().getPrefix()))
|
.withPrefixMatcher(new SimplePrefixMatcher(result.getPrefixMatcher().getPrefix()))
|
||||||
.addAllElements(elements);
|
.addAllElements(elements);
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ public class AbsentJdkAnnotationsComponent extends AbstractProjectComponent {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("StaticMethodReferencedViaSubclass")
|
|
||||||
boolean isAndroidSdk = NotificationsPackage.isAndroidSdk(sdk);
|
boolean isAndroidSdk = NotificationsPackage.isAndroidSdk(sdk);
|
||||||
return !(isAndroidSdk && !KotlinRuntimeLibraryUtil.androidSdkAnnotationsArePresent(sdk));
|
return !(isAndroidSdk && !KotlinRuntimeLibraryUtil.androidSdkAnnotationsArePresent(sdk));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,10 +102,8 @@ public class JetPsiChecker implements Annotator, HighlightRangeExtension {
|
|||||||
|
|
||||||
AnalyzeExhaust analyzeExhaust = AnalyzerFacadeWithCache.analyzeFileWithCache(file);
|
AnalyzeExhaust analyzeExhaust = AnalyzerFacadeWithCache.analyzeFileWithCache(file);
|
||||||
if (analyzeExhaust.isError()) {
|
if (analyzeExhaust.isError()) {
|
||||||
//noinspection StaticMethodReferencedViaSubclass
|
|
||||||
HighlighterPackage.updateHighlightingResult(file, true);
|
HighlighterPackage.updateHighlightingResult(file, true);
|
||||||
|
|
||||||
// Force stop highlighting annotate cycle
|
|
||||||
throw new ProcessCanceledException(analyzeExhaust.getError());
|
throw new ProcessCanceledException(analyzeExhaust.getError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user