diff --git a/src/main/java/net/flintmc/launcher/classloading/RootClassLoader.java b/src/main/java/net/flintmc/launcher/classloading/RootClassLoader.java index cbdedd9..77c4c78 100644 --- a/src/main/java/net/flintmc/launcher/classloading/RootClassLoader.java +++ b/src/main/java/net/flintmc/launcher/classloading/RootClassLoader.java @@ -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); } /** @@ -371,7 +371,7 @@ public URL findResource(String name, boolean allowRedirect) { */ @Override public Enumeration findResources(String name) throws IOException { - return findResources(name, true); + return this.findResources(name, true); } /** diff --git a/src/main/java/net/flintmc/launcher/util/ClassPathEnumeration.java b/src/main/java/net/flintmc/launcher/util/ClassPathEnumeration.java index e9c5b44..307ac15 100644 --- a/src/main/java/net/flintmc/launcher/util/ClassPathEnumeration.java +++ b/src/main/java/net/flintmc/launcher/util/ClassPathEnumeration.java @@ -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