Skip to content

Commit 88d31ff

Browse files
committed
Polish XPathMatcher code
1 parent 1fc1909 commit 88d31ff

2 files changed

Lines changed: 121 additions & 103 deletions

File tree

rewrite-xml/src/main/java/org/openrewrite/xml/XPathCompiler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.openrewrite.xml.internal.grammar.XPathLexer;
2323
import org.openrewrite.xml.internal.grammar.XPathParser;
2424

25+
import java.util.ArrayList;
2526
import java.util.List;
2627

2728
/**
@@ -254,7 +255,7 @@ private static CompiledStep[] normalizeParentSteps(CompiledStep[] steps) {
254255
}
255256

256257
// Build normalized step list
257-
java.util.ArrayList<CompiledStep> result = new java.util.ArrayList<>();
258+
ArrayList<CompiledStep> result = new ArrayList<>();
258259
int i = 0;
259260

260261
while (i < steps.length) {

0 commit comments

Comments
 (0)