Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

review: refactor: reduce complexity of setInputClassLoader #5242

Merged
merged 3 commits into from
Jun 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
up
MartinWitt committed May 30, 2023
commit 72388ae96a9d5dc7ebd8fdc45a6f8bb7d434b5d1
3 changes: 1 addition & 2 deletions src/main/java/spoon/support/StandardEnvironment.java
Original file line number Diff line number Diff line change
@@ -439,8 +439,7 @@ public void setInputClassLoader(ClassLoader aClassLoader) {
for (URL url : urls) {
try {
classpath.add(Path.of(url.toURI()).toAbsolutePath().toString());
} catch (URISyntaxException | FileSystemNotFoundException
| IllegalArgumentException ignored) {
} catch (URISyntaxException | FileSystemNotFoundException | IllegalArgumentException ignored) {
classpath.add(URLDecoder.decode(url.getPath(), StandardCharsets.UTF_8));
}
}