Skip to content

Commit

Permalink
Address changes requested in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Janrupf committed May 20, 2021
1 parent f99be02 commit b463c7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public Class<?> findClass(String name, ChildClassLoader preferredLoader)
*/
@Override
public URL findResource(String name) {
return findResource(name, true);
return this.findResource(name, true);
}

/**
Expand Down Expand Up @@ -371,7 +371,7 @@ public URL findResource(String name, boolean allowRedirect) {
*/
@Override
public Enumeration<URL> findResources(String name) throws IOException {
return findResources(name, true);
return this.findResources(name, true);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,20 @@ private boolean next() throws IOException {
@Override
public boolean hasMoreElements() {
try {
return next();
} catch (IOException e) {
throw new UncheckedIOException(e);
return this.next();
} catch (IOException exception) {
throw new UncheckedIOException(exception);
}
}

@Override
public URL nextElement() {
try {
if (!next()) {
if (!this.next()) {
throw new NoSuchElementException();
}
} catch (IOException e) {
throw new UncheckedIOException(e);
} catch (IOException exception) {
throw new UncheckedIOException(exception);
}

// Take the current URL and clear it internally, so that the next() function will search again
Expand Down

0 comments on commit b463c7b

Please sign in to comment.