mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2025-02-01 04:31:21 +01:00
Update equals and hashCode methods
This commit is contained in:
parent
523b866f8e
commit
ae89ad25b1
@ -16,11 +16,11 @@ public class PlaceholderIdentifier {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || getClass() != obj.getClass()) {
|
||||
if (!(obj instanceof PlaceholderIdentifier)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ public class PlaceholderIdentifier {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
public final int hashCode() {
|
||||
return identifier.hashCode();
|
||||
}
|
||||
|
||||
|
@ -71,11 +71,11 @@ public class PlaceholderOccurrence {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || this.getClass() != obj.getClass()) {
|
||||
if (!(obj instanceof PlaceholderOccurrence)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ public class PlaceholderOccurrence {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
public final int hashCode() {
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
|
@ -21,11 +21,11 @@ public class PluginName {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null || getClass() != obj.getClass()) {
|
||||
if (!(obj instanceof PluginName)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ public class PluginName {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
public final int hashCode() {
|
||||
return pluginName.hashCode();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user