Merge remote-tracking branch 'origin/master' into develar/is
[idea/community.git] / java / testFramework / src / com / intellij / testFramework / InspectionTestCase.java
index 92e3a7d2c6ad250754c20c5f84e49043fbe4ee70..3538efac632200c0203f7cae9dd0928b31240fc6 100644 (file)
@@ -241,8 +241,8 @@ public abstract class InspectionTestCase extends PsiTestCase {
   }
 
   protected Sdk getTestProjectSdk() {
-    Sdk sdk = IdeaTestUtil.getMockJdk17();
-    LanguageLevelProjectExtension.getInstance(getProject()).setLanguageLevel(LanguageLevel.JDK_1_5);
+    Sdk sdk = IdeaTestUtil.getMockJdk18();
+    LanguageLevelProjectExtension.getInstance(getProject()).setLanguageLevel(LanguageLevel.JDK_1_8);
     return sdk;
   }