mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-13 14:36:58 +07:00
for "Convert to instance method" refactoring GitOrigin-RevId: 957b0b0cecf93f6ff849d4105ed864bc6ba99c8f
17 lines
300 B
Java
17 lines
300 B
Java
class X {
|
|
static Node <caret>skipForward2(Node node, Predicate<Node> skipWhile) {
|
|
while (skipWhile.test(node)) {
|
|
Node next = node.nextNode();
|
|
if (next == null) break;
|
|
node = next;
|
|
}
|
|
return node;
|
|
}
|
|
|
|
class Node {
|
|
|
|
Node nextNode() {
|
|
return null;
|
|
}
|
|
}
|
|
} |