From badec75f1013ba72a6c7e90cd048f4c371548b15 Mon Sep 17 00:00:00 2001 From: Tefek <31473117+493msi@users.noreply.github.com> Date: Fri, 1 Jan 2021 22:50:54 +0100 Subject: [PATCH] [PlutoLib] Added missing this keywords --- .../java/cz/tefek/pluto/PlutoVersion.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/plutolib/src/main/java/cz/tefek/pluto/PlutoVersion.java b/plutolib/src/main/java/cz/tefek/pluto/PlutoVersion.java index fddfc1b..c840755 100644 --- a/plutolib/src/main/java/cz/tefek/pluto/PlutoVersion.java +++ b/plutolib/src/main/java/cz/tefek/pluto/PlutoVersion.java @@ -186,31 +186,31 @@ public final class PlutoVersion implements IVersion if (this == o) return true; - if (o == null || getClass() != o.getClass()) + if (o == null || this.getClass() != o.getClass()) return false; PlutoVersion that = (PlutoVersion) o; - if (prerelease) - return year == that.year && - major == that.major && - minor == that.minor && - patch == that.patch && - prereleaseNumber == that.prereleaseNumber && - Objects.equals(prereleaseName, that.prereleaseName); + if (this.prerelease) + return this.year == that.year && + this.major == that.major && + this.minor == that.minor && + this.patch == that.patch && + this.prereleaseNumber == that.prereleaseNumber && + Objects.equals(this.prereleaseName, that.prereleaseName); else - return year == that.year && - major == that.major && - minor == that.minor && - patch == that.patch; + return this.year == that.year && + this.major == that.major && + this.minor == that.minor && + this.patch == that.patch; } @Override public int hashCode() { - if (prerelease) - return Objects.hash(year, major, minor, patch); + if (this.prerelease) + return Objects.hash(this.year, this.major, this.minor, this.patch); else - return Objects.hash(year, major, minor, patch, prereleaseName, prereleaseNumber); + return Objects.hash(this.year, this.major, this.minor, this.patch, this.prereleaseName, this.prereleaseNumber); } }