[android] - added tests for Annotation

This commit is contained in:
Tobrun
2016-04-04 16:10:51 +02:00
parent 92b494bc2f
commit 86003d1fb4
2 changed files with 93 additions and 6 deletions

View File

@@ -75,19 +75,15 @@ public abstract class Annotation implements Comparable<Annotation> {
} else if (id > annotation.getId()) {
return -1;
}
// Equal
return 0;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (o == null || !(o instanceof Annotation)) return false;
Annotation that = (Annotation) o;
return getId() == that.getId();
return id == that.getId();
}
@Override