Преглед на файлове

Changement ordre operation equals

Arthur Brandao преди 6 години
родител
ревизия
d357473d6e
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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);