Files
Bas Leijdekkers a0aaa369c9 java: preserve comments on "Replace constructor with factory method"
GitOrigin-RevId: b2a8ab6923c29f5f35e50acdf30aa1acc897c844
2024-05-03 16:06:52 +00:00

17 lines
277 B
Java

class Used {
Inner createInner() {
return new Inner();
}
class Inner {
private Inner() {
}
}
public static void main(String[] args) {
/*2*/
/*3*/
/*4*/
/*5*/
new /*1*/Used().createInner(/*6*/)/*7*/;
}
}