Fix unit tests

This commit is contained in:
Andreas Dangel committed 2023-01-24 10:55:11 +01:00
1 parent faf3b6ebf9
commit 81bfed2ef7
1 file changed
-4
@@ -263,13 +263,9 @@ public final class FileCollector implements AutoCloseable {
/**
* Return the textfile's display name.
* test only
*/
static String getDisplayNameLegacy(Path file, List<String> relativizeRoots) {
String fileName = file.toString();
if ("jar".equals(file.toUri().getScheme())) {
fileName = URI.create(file.toUri().getSchemeSpecificPart()).getPath();
}
for (String root : relativizeRoots) {
if (file.startsWith(root)) {
if (fileName.startsWith(File.separator, root.length())) {