mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
- fixes for comments - simplified replacement - support char[] - support ImplicitArrayToStringInspection (cherry picked from commit 49f9f829821a498259aa53ebb12cd0b0007f1238) (cherry picked from commit 5f4445631fa55911d98477066d3821423c37ec11) IJ-MR-169535 GitOrigin-RevId: cf93370312fc5fbe632eb73ca8840d157732da50
37 lines
1.2 KiB
Java
37 lines
1.2 KiB
Java
// 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.
|
|
package com.siyeh.ig.bugs;
|
|
|
|
import com.intellij.codeInspection.InspectionProfileEntry;
|
|
import com.intellij.java.codeInspection.MigrateToJavaLangIoInspectionTest;
|
|
import com.intellij.pom.java.LanguageLevel;
|
|
import com.intellij.testFramework.IdeaTestUtil;
|
|
import com.intellij.testFramework.LightProjectDescriptor;
|
|
import com.siyeh.ig.LightJavaInspectionTestCase;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
public class ImplicitArrayToStringInspectionTest extends LightJavaInspectionTestCase {
|
|
|
|
public void testImplicitArrayToString() {
|
|
doTest();
|
|
}
|
|
|
|
public void testImplicitArrayToStringIO() {
|
|
IdeaTestUtil.withLevel(getModule(), LanguageLevel.JDK_25, () -> {
|
|
MigrateToJavaLangIoInspectionTest.addIOClass(myFixture);
|
|
doTest();
|
|
});
|
|
}
|
|
|
|
@NotNull
|
|
@Override
|
|
protected LightProjectDescriptor getProjectDescriptor() {
|
|
return JAVA_11;
|
|
}
|
|
|
|
@Nullable
|
|
@Override
|
|
protected InspectionProfileEntry getInspection() {
|
|
return new ImplicitArrayToStringInspection();
|
|
}
|
|
} |