File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
java-compiler-testing/src/main/java/io/github/ascopes/jct/utils Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ public static String pathToBinaryName(Path path) {
146
146
var names = new String [count ];
147
147
148
148
for (var i = 0 ; i < count ; ++i ) {
149
- names [i ] = FileUtils . stripFileExtension (path .getName (i ).toString ());
149
+ names [i ] = stripFileExtension (path .getName (i ).toString ());
150
150
}
151
151
152
152
return String .join ("." , names );
@@ -307,10 +307,7 @@ public static Predicate<? super Path> fileWithAnyKind(Set<? extends Kind> kinds)
307
307
}
308
308
309
309
private static Path resolve (Path root , String ... parts ) {
310
- for (var part : parts ) {
311
- root = root .resolve (part );
312
- }
313
- return root .normalize ();
310
+ return resolve (root , List .of (parts ));
314
311
}
315
312
316
313
private static Path resolve (Path root , Iterable <String > parts ) {
You can’t perform that action at this time.
0 commit comments