-
Notifications
You must be signed in to change notification settings - Fork 0
/
Example.java
42 lines (35 loc) · 1.12 KB
/
Example.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.trl.theoreticalKnowledge.nestedClass.innerClass.localInnerClass.a.a1;
public class Example {
}
class Outer {
public Outer() {
class LocalInnerClass {
}
}
public void someMethod() {
class LocalInnerClass {
}
}
public static void someMethod_2() {
/*
* This is a difficult situation that I could not solve. This method is static. Because of this, this method
* belongs to the "class type" and not "object type". Because of this, we can assume that, "LocalInnerClass"
* which is defined in this method is an "LocalStaticNestedClass".
* */
class LocalInnerClass {
}
}
{
class LocalInnerClass {
}
}
static {
/*
* This is a difficult situation that I could not solve. This area is static. Because of this, this method
* belongs to the "class type" and not "object type". Because of this, we can assume that, "LocalInnerClass"
* which is defined in this method is an "LocalStaticNestedClass".
* */
class LocalInnerClass {
}
}
}