Skip to content

Commit 0319161

Browse files
authored
Add == check
1 parent 10baaa2 commit 0319161

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

jme3-core/src/main/java/com/jme3/texture/TextureArray.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ public void read(JmeImporter importer) throws IOException {
175175

176176
@Override
177177
public boolean equals(Object other) {
178+
if (this == obj) {
179+
return true;
180+
}
178181
if (!(other instanceof TextureArray)) {
179182
return false;
180183
}
@@ -193,4 +196,4 @@ public int hashCode() {
193196
hash = 79 * hash + (this.wrapT != null ? this.wrapT.hashCode() : 0);
194197
return hash;
195198
}
196-
}
199+
}

0 commit comments

Comments
 (0)