質問編集履歴
3
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
// do something
|
14
14
|
}
|
15
15
|
|
16
|
-
public static
|
16
|
+
public static Aaa of(Xxx x, Yyy y) {
|
17
17
|
return new Aaa(x, y);
|
18
18
|
}
|
19
19
|
|
2
title
CHANGED
File without changes
|
body
CHANGED
@@ -46,7 +46,7 @@
|
|
46
46
|
// do something
|
47
47
|
}
|
48
48
|
|
49
|
-
public static Bbb(Xxx x, Yyy y, Zzz z) {
|
49
|
+
public static Bbb of(Xxx x, Yyy y, Zzz z) {
|
50
50
|
return new Bbb(x, y, z);
|
51
51
|
}
|
52
52
|
|
1
title
CHANGED
File without changes
|
body
CHANGED
@@ -41,10 +41,15 @@
|
|
41
41
|
|
42
42
|
class Bbb extends ForwardingAaa {
|
43
43
|
|
44
|
-
Bbb(Xxx x, Yyy y) {
|
44
|
+
private Bbb(Xxx x, Yyy y, Zzz z) {
|
45
45
|
super(Aaa.of(x, y));
|
46
|
+
// do something
|
46
47
|
}
|
47
48
|
|
49
|
+
public static Bbb(Xxx x, Yyy y, Zzz z) {
|
50
|
+
return new Bbb(x, y, z);
|
51
|
+
}
|
52
|
+
|
48
53
|
void funcB() {
|
49
54
|
// do something
|
50
55
|
}
|