mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
12 lines
204 B
Java
12 lines
204 B
Java
// "Replace 'n' with pattern variable" "true"
|
|
class X {
|
|
void test(Object obj) {
|
|
while (obj instanceof Node n) {
|
|
obj = n.getNext();
|
|
}
|
|
}
|
|
|
|
interface Node {
|
|
Object getNext();
|
|
}
|
|
} |