Skip to content

Commit

Permalink
replaceAll instead of replace when path contains %20 in CompilerClass…
Browse files Browse the repository at this point in the history
…Loader
  • Loading branch information
rach-id committed Sep 15, 2020
1 parent 5836037 commit 29315ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private Optional<File> compileClass(final String name) {
sourceFile = file;
break;
} else if (url.getFile().contains("%20")) {
file = new File(url.getFile().replace("%20", " "), path + ".java");
file = new File(url.getFile().replaceAll("%20", " "), path + ".java");
if (file.exists()) {
sourceFile = file;
break;
Expand Down

0 comments on commit 29315ab

Please sign in to comment.