mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 17:03:12 +07:00
make IG test light
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ public class PrimitiveArrayArgumentToVariableArgMethod
|
||||
{
|
||||
public static void main(String[] arg)
|
||||
{
|
||||
methodVarArgObject(new byte[3]);
|
||||
methodVarArgObject(<warning descr="Confusing primitive array argument to var-arg method">new byte[3]</warning>);
|
||||
methodVarArgByteArray(new byte[3]);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>PrimitiveArrayArgumentToVariableArgMethod.java</file>
|
||||
<line>7</line>
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Confusing primitive array argument to var-arg method</problem_class>
|
||||
<description>Confusing primitive array argument to var-arg method #loc</description>
|
||||
</problem>
|
||||
</problems>
|
||||
+17
-4
@@ -1,10 +1,23 @@
|
||||
package com.siyeh.ig.bugs;
|
||||
|
||||
import com.siyeh.ig.IGInspectionTestCase;
|
||||
import com.intellij.codeInspection.InspectionProfileEntry;
|
||||
import com.siyeh.ig.LightInspectionTestCase;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class PrimitiveArrayArgumentToVariableArgMethodInspectionTest extends IGInspectionTestCase {
|
||||
public class PrimitiveArrayArgumentToVariableArgMethodInspectionTest extends LightInspectionTestCase {
|
||||
|
||||
public void test() throws Exception {
|
||||
doTest("com/siyeh/igtest/bugs/var_arg", new PrimitiveArrayArgumentToVariableArgMethodInspection());
|
||||
public void testPrimitiveArrayArgumentToVariableArgMethod() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected InspectionProfileEntry getInspection() {
|
||||
return new PrimitiveArrayArgumentToVariableArgMethodInspection();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getBasePath() {
|
||||
return "/plugins/InspectionGadgets/test/com/siyeh/igtest/bugs/var_arg";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user