本文整理匯總了Java中com.intellij.codeInspection.miscGenerics.RedundantArrayForVarargsCallInspection類的典型用法代碼示例。如果您正苦於以下問題:Java RedundantArrayForVarargsCallInspection類的具體用法?Java RedundantArrayForVarargsCallInspection怎麽用?Java RedundantArrayForVarargsCallInspection使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RedundantArrayForVarargsCallInspection類屬於com.intellij.codeInspection.miscGenerics包,在下文中一共展示了RedundantArrayForVarargsCallInspection類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setUp
import com.intellij.codeInspection.miscGenerics.RedundantArrayForVarargsCallInspection; //導入依賴的package包/類
@Override
protected void setUp() throws Exception {
super.setUp();
IdeaTestFixtureFactory factory = IdeaTestFixtureFactory.getFixtureFactory();
TestFixtureBuilder<IdeaProjectTestFixture> fixtureBuilder = factory.createLightFixtureBuilder(new DefaultLightProjectDescriptor());
final IdeaProjectTestFixture fixture = fixtureBuilder.getFixture();
myFixture = IdeaTestFixtureFactory.getFixtureFactory().createCodeInsightFixture(fixture,
new LightTempDirTestFixtureImpl(true));
myInspection = new RedundantArrayForVarargsCallInspection();
myFixture.enableInspections(myInspection);
myFixture.setUp();
myFixture.setTestDataPath(getTestDataPath());
}
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:14,代碼來源:RedundantArray4VarargsCallInspectionTest.java
示例2: doTest
import com.intellij.codeInspection.miscGenerics.RedundantArrayForVarargsCallInspection; //導入依賴的package包/類
private void doTest() throws Exception {
doTest("redundantArrayForVarargs/" + getTestName(true), new LocalInspectionToolWrapper(new RedundantArrayForVarargsCallInspection()),"java 1.5");
}
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:RedundantArrayForVarargsCallInspectionTest.java
示例3: setUp
import com.intellij.codeInspection.miscGenerics.RedundantArrayForVarargsCallInspection; //導入依賴的package包/類
@Override
protected void setUp() throws Exception {
super.setUp();
myFixture.enableInspections(new RedundantArrayForVarargsCallInspection());
}
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:RedundantArray4VarargsCallInspectionTest.java