Skip to content

Commit

Permalink
ResourceInputStream: Fix name shadowing by local variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjon3377 committed Apr 7, 2024
1 parent 550b05e commit 4d20e21
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public ResourceInputStream(final String filename, final Class<?> sourceClass) th
//noinspection HardcodedFileSeparator getResourceAsStream() takes a '/'-delimited path.
temp = sourceClass.getResourceAsStream("/" + filename);
if (Objects.isNull(temp)) {
final NoSuchFileException wrapped = new NoSuchFileException(filename);
wrapped.initCause(except);
throw wrapped;
final NoSuchFileException wrappedException = new NoSuchFileException(filename);
wrappedException.initCause(except);
throw wrappedException;
}
}
wrapped = temp;
Expand Down

0 comments on commit 4d20e21

Please sign in to comment.