mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
test adapted for JDK 1.5
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import java.util.*;
|
||||
|
||||
public class Collect {
|
||||
public void m(List anObject) {
|
||||
public void m(List<String> anObject) {
|
||||
List strs = anObject;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@ package com.intellij.refactoring;
|
||||
import com.intellij.JavaTestUtil;
|
||||
import com.intellij.codeInsight.CodeInsightUtil;
|
||||
import com.intellij.openapi.actionSystem.DataContext;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.openapi.projectRoots.impl.JavaSdkImpl;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiExpression;
|
||||
import com.intellij.psi.PsiLocalVariable;
|
||||
@@ -291,4 +293,9 @@ public class IntroduceParameterTest extends LightCodeInsightTestCase {
|
||||
IntroduceParameterRefactoring.REPLACE_FIELDS_WITH_GETTERS_INACCESSIBLE,
|
||||
declareFinal, false, null, parametersToRemove).run();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Sdk getProjectJDK() {
|
||||
return JavaSdkImpl.getMockJdk15("java 1.5");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user