package fr.laas.fape.structures;

public abstract class AbsIdentifiable implements Identifiable {

    private int id = -1;

    @Override final public int getID() { return id; }
    @Override final public void setID(int id) { this.id = id; }

    @Override final public int hashCode() { assert getID() >= 0; return getID(); }
    @Override final public boolean equals(Object o) {
        return this.getClass() == o.getClass() &&
                getID() == ((Identifiable) o).getID();
    }
}

@@ -388,16 +388,45 @@
   return
+ o != null%0A                &&
  this.ge
@@ -449,19 +449,16 @@
 tClass()
- &&
 %0A       
@@ -465,16 +465,19 @@
         
+ &&
  getID()

Check for null value in equals of AbsIdentifiable