Skip to content

Commit

Permalink
fix "java.nio.file.InvalidPathException: Illegal char <:> at index 2" (
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszpop committed May 1, 2024
1 parent c3f1a38 commit 7b73731
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class ClassScanner extends TreeScanner<Void, Void> {
@Override
public Void visitCompilationUnit(CompilationUnitTree t, Void v) {
compileUnit = t;
fileName = Paths.get(compileUnit.getSourceFile().toUri().getPath()).getFileName().toString();
fileName = Paths.get(compileUnit.getSourceFile().toUri()).getFileName().toString();
currentClassName = null;
currentFileImports = new HashMap<>();

Expand Down

0 comments on commit 7b73731

Please sign in to comment.