inline class to anonymous: replace varargs with array creation

This commit is contained in:
anna
2010-03-01 11:05:55 +03:00
parent 85fdbe5309
commit 50de08af4a
4 changed files with 51 additions and 1 deletions
@@ -0,0 +1,10 @@
class A {
private Object b = new Runnable() {
{
System.out.println(new String[]{"w"}[0]);
}
public void run(){}
};
}