[java] ConstantAssertArgumentInspection: remove static init

GitOrigin-RevId: 11376e2823af04b94a3a46f782b0326be59000ac
This commit is contained in:
Yann Cébron
2024-03-06 19:11:16 +00:00
committed by intellij-monorepo-bot
parent ba428c917b
commit eae9e46a69
@@ -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