Curious. I'm not sure what this is for. But if you decompile the classes, you can see how it is used:
public class Outer {
public Outer();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."":()V
4: return
void someMethod();
Code:
0: new #2 // class Outer$Inner
3: dup
4: aload_0
5: aconst_null
6: invokespecial #3 // Method Outer$Inner."":(LOuter;LOuter$1;)V
9: astore_1
10: return
public static void main(java.lang.String[]);
Code:
0: new #4 // class Outer
3: dup
4: invokespecial #5 // Method "":()V
7: astore_1
8: return
}
class Outer$Inner {
final Outer this$0;
Outer$Inner(Outer, Outer$1);
Code:
0: aload_0
1: aload_1
2: invokespecial #1 // Method "":(LOuter;)V
5: return
}
class Outer$1 {
}
So, Outer$1
seems to contain nothing - not even a default constructor. But a reference to a Outer$1
has to be passed to Outer$Inner
to construct it. Mysteriously, the value passed in someMethod
is null
(line 5 in someMethod
).