mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
LVTI: warnings for var as class name (IDEA-178868)
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
class <warning descr="Usage of 'var' as class name might not be supported in releases after java 9">var</warning> {}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class Main {
|
||||
class <error descr="'var' is a restricted local variable type and cannot be used for type declarations">var</error> {}
|
||||
|
||||
<<error descr="'var' is a restricted local variable type and cannot be used for type declarations">var</error> extends String> void foo() {}
|
||||
}
|
||||
+1
@@ -45,6 +45,7 @@ public class LightAdvHighlightingJdk8Test extends LightDaemonAnalyzerTestCase {
|
||||
public void testLambdaExpressions() { doTest(false, true); }
|
||||
public void testUnsupportedFeatures() { doTest(false, false); }
|
||||
public void testModulesNotSupported() { doTest(false, false); }
|
||||
public void testVarClassesWarning() { doTest(true, false); }
|
||||
|
||||
public void testTooManyVarargsPolyArguments() {
|
||||
doTest(true, false);
|
||||
|
||||
+2
-3
@@ -35,9 +35,8 @@ public class LightAdvLVTIHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest(BASE_PATH + "/" + getTestName(false) + ".java", false, false);
|
||||
}
|
||||
|
||||
public void testSimpleAvailability() {
|
||||
doTest();
|
||||
}
|
||||
public void testSimpleAvailability() { doTest(); }
|
||||
public void testVarClassNameConflicts() { doTest(); }
|
||||
|
||||
@Override
|
||||
protected Sdk getProjectJDK() {
|
||||
|
||||
Reference in New Issue
Block a user