mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +07:00
15 lines
339 B
Java
15 lines
339 B
Java
class Node {
|
|
String getType() { return ""; }
|
|
|
|
String foo(Node left, Node right) {
|
|
String leftType = newMethod(left);
|
|
String rightType = newMethod(right);
|
|
|
|
String type = "A";
|
|
return leftType + rightType + type;
|
|
}
|
|
|
|
private String newMethod(Node right) {
|
|
return right.getType();
|
|
}
|
|
} |