java: highlighting for statics in anonymous classes

This commit is contained in:
Roman Shevchenko committed 2013-09-16 13:02:14 +04:00
1 parent 2c8eb0da10
commit 20150830af
3 files changed
+23 -7

No files matched your search

@@ -48,7 +48,7 @@ public class a {
<error descr="Inner classes cannot have static declarations">static</error>
final int f2 = x instanceof Integer ? 1 : 0;
<error descr="Modifier 'static' not allowed here">static</error>
<error descr="Inner classes cannot have static declarations"><error descr="Modifier 'static' not allowed here">static</error></error>
class a_ic_c2 {}
<error descr="Inner classes cannot have static declarations">static</error>
@@ -75,7 +75,7 @@ public class a {
<error descr="Inner classes cannot have static declarations">static</error>
final int f2 = x instanceof Integer ? 1 : 0;
<error descr="Modifier 'static' not allowed here">static</error>
<error descr="Inner classes cannot have static declarations"><error descr="Modifier 'static' not allowed here">static</error></error>
class a_ic_c2 {}
<error descr="Inner classes cannot have static declarations">static</error>