SSR: remove unused parameter

GitOrigin-RevId: 4a9cbd8c4114297e9ae1b28aeb8b11df5804d54b
This commit is contained in:
Bas Leijdekkers
2020-01-02 22:03:38 +00:00
committed by intellij-monorepo-bot
parent fa4dde54cb
commit 8d2428db65
3 changed files with 7 additions and 6 deletions
@@ -1,4 +1,4 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.structuralsearch.inspection.highlightTemplate;
import com.intellij.codeInsight.daemon.HighlightDisplayKey;
@@ -44,7 +44,7 @@ import java.util.*;
public class SSBasedInspection extends LocalInspectionTool {
static final Object LOCK = new Object(); // hack to avoid race conditions in SSR
public static final String SHORT_NAME = "SSBasedInspection";
@NonNls public static final String SHORT_NAME = "SSBasedInspection";
private final List<Configuration> myConfigurations = ContainerUtil.createLockFreeCopyOnWriteList();
final Set<String> myProblemsReported = new HashSet<>(1);
private InspectionProfileImpl mySessionProfile = null;
@@ -185,7 +185,7 @@ public class SSBasedInspection extends LocalInspectionTool {
}
@TestOnly
public void setConfigurations(@NotNull final List<? extends Configuration> configurations, @NotNull final Project project) {
public void setConfigurations(@NotNull final List<? extends Configuration> configurations) {
myConfigurations.clear();
myConfigurations.addAll(configurations);
}
@@ -1,3 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.structuralsearch;
import com.intellij.codeInspection.ex.LocalInspectionToolWrapper;
@@ -32,7 +33,7 @@ public class SSBasedInspectionTest extends JavaInspectionTestCase {
options.setSearchPattern("f();");
configurations.add(configuration2);
inspection.setConfigurations(configurations, getProject());
inspection.setConfigurations(configurations);
myWrapper = new LocalInspectionToolWrapper(inspection);
}
@@ -1,4 +1,4 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.structuralsearch;
import com.intellij.openapi.fileTypes.StdFileTypes;
@@ -69,7 +69,7 @@ public class SSRCodeInsightTest extends UsefulTestCase {
options.setFileType(StdFileTypes.JAVA);
options.setSearchPattern(searchPattern);
myInspection.setConfigurations(Collections.singletonList(configuration), myFixture.getProject());
myInspection.setConfigurations(Collections.singletonList(configuration));
myFixture.testHighlighting(true, false, false, getTestName(false) + ".java");
}