Skip to content

Commit

Permalink
Remove redundant public modifier and silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Sep 2, 2016
1 parent c3745bb commit 15fa997
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/me/nallar/modpatcher/ModPatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ private static void addToCurrentClassLoader() {
lcl.addTransformerExclusion(MODPATCHER_PACKAGE);
lcl.addURL(url);

Set<String> invalidClasses = ReflectionHelper.<Set<String>, LaunchClassLoader>getPrivateValue(LaunchClassLoader.class, lcl, "invalidClasses");
Set<String> negativeResources = ReflectionHelper.<Set<String>, LaunchClassLoader>getPrivateValue(LaunchClassLoader.class, lcl, "negativeResourceCache");
Set<String> invalidClasses = ReflectionHelper.getPrivateValue(LaunchClassLoader.class, lcl, "invalidClasses");
Set<String> negativeResources = ReflectionHelper.getPrivateValue(LaunchClassLoader.class, lcl, "negativeResourceCache");
invalidClasses.removeIf(ModPatcher::removeModPatcherEntries);
negativeResources.removeIf(ModPatcher::removeModPatcherEntries);

Expand Down Expand Up @@ -348,8 +348,8 @@ static Version getLastVersion() {
}

static class Version implements Comparable<Version> {
public static final Version LATEST = new Version(String.valueOf(Integer.MAX_VALUE));
public static final Version NONE = new Version("0");
static final Version LATEST = new Version(String.valueOf(Integer.MAX_VALUE));
static final Version NONE = new Version("0");
private String version;
private boolean snapshot;

Expand All @@ -374,7 +374,7 @@ static Version of(String s) {
}

@Override
public int compareTo(Version that) {
public int compareTo(@SuppressWarnings("NullableProblems") Version that) {
if (that == null)
return 1;

Expand Down Expand Up @@ -420,7 +420,7 @@ public boolean equals(Object that) {
return this == that || that != null && this.getClass() == that.getClass() && this.compareTo((Version) that) == 0;
}

public boolean newerThan(Version other) {
boolean newerThan(Version other) {
return compareTo(other) > 0;
}
}
Expand Down

0 comments on commit 15fa997

Please sign in to comment.