mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] ConstantAssertArgumentInspection: remove static init
GitOrigin-RevId: 11376e2823af04b94a3a46f782b0326be59000ac
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ba428c917b
commit
eae9e46a69
+7
-9
@@ -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-2024 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.siyeh.ig.testFrameworks;
|
||||
|
||||
import com.intellij.psi.PsiExpression;
|
||||
@@ -15,14 +15,12 @@ import java.util.Set;
|
||||
|
||||
public final class ConstantAssertArgumentInspection extends BaseInspection {
|
||||
@NonNls
|
||||
private static final Set<String> ASSERT_METHODS = new HashSet<>();
|
||||
|
||||
static {
|
||||
ASSERT_METHODS.add("assertTrue");
|
||||
ASSERT_METHODS.add("assertFalse");
|
||||
ASSERT_METHODS.add("assertNull");
|
||||
ASSERT_METHODS.add("assertNotNull");
|
||||
}
|
||||
private static final Set<String> ASSERT_METHODS = Set.of(
|
||||
"assertTrue",
|
||||
"assertFalse",
|
||||
"assertNull",
|
||||
"assertNotNull"
|
||||
);
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user