Skip to content

Commit f1bf2b5

Browse files
authored
Remove duplicate logic in FileUtils
Signed-off-by: Ashley <[email protected]>
1 parent 24e072f commit f1bf2b5

File tree

1 file changed

+1
-4
lines changed
  • java-compiler-testing/src/main/java/io/github/ascopes/jct/utils

1 file changed

+1
-4
lines changed

java-compiler-testing/src/main/java/io/github/ascopes/jct/utils/FileUtils.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ public static URL retrieveRequiredUrl(Path path) {
9595
* @return the resolved path.
9696
*/
9797
public static Path resolvePathRecursively(Path root, String... parts) {
98-
for (var part : parts) {
99-
root = root.resolve(part);
100-
}
101-
return root.normalize();
98+
return resolve(root, parts);
10299
}
103100

104101
/**

0 commit comments

Comments
 (0)