Explorar o código

Changement ordre operation equals

Arthur Brandao %!s(int64=6) %!d(string=hai) anos
pai
achega
d357473d6e
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/migl/lisp/LispElement.java

+ 3 - 3
src/migl/lisp/LispElement.java

@@ -95,10 +95,10 @@ public class LispElement<E> {
 
 	@Override
 	public boolean equals(Object obj) {
-		if(this == obj) {
-			return true;
-		} else if(obj == null) {
+		if(obj == null) {
 			return false;
+		} else if(this == obj) {
+			return true;
 		} else if(obj instanceof LispElement) {
 			LispElement<?> other = (LispElement<?>) obj;
 			return this.value.equals(other.value);