[java] merges language level name and JDK version description

This commit is contained in:
Roman Shevchenko
2018-01-18 13:54:21 +01:00
parent c86688b5e6
commit 9f05380c48
10 changed files with 35 additions and 39 deletions

View File

@@ -15,7 +15,7 @@ abstract class C {
void notWrong() { }
}
class B extends <error descr="Type annotations are not supported at language level '1.7'">@Deprecated</error> Object { }
class B extends <error descr="Type annotations are not supported at language level '7'">@Deprecated</error> Object { }
enum E {
@Anno E1
@@ -24,7 +24,7 @@ enum E {
interface I {
@<error descr="Duplicate annotation">Anno</error>
public @<error descr="Duplicate annotation">Anno</error>
Collection<<error descr="Type annotations are not supported at language level '1.7'">@Anno</error> String>
Collection<<error descr="Type annotations are not supported at language level '7'">@Anno</error> String>
method(@<error descr="Duplicate annotation">Anno</error> @<error descr="Duplicate annotation">Anno</error> Object o);
}