forbid 'static'/'default' in annotation types

This commit is contained in:
Anna Kozlova
2014-08-18 13:15:15 +04:00
parent 87a984538a
commit 81fc7616bf
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
@interface Example {
public <error descr="Modifier 'static' not allowed here">static</error> String myMethod() {
return "";
}
public <error descr="Modifier 'default' not allowed here">default</error> String myMethod1() {
return "";
}
}