diff --git a/src/templates/java/series_object_java b/src/templates/java/series_object_java index d6e52d7..6d6615f 100644 --- a/src/templates/java/series_object_java +++ b/src/templates/java/series_object_java @@ -88,8 +88,7 @@ public class -- -- { public boolean equals(Object anotherObj) { if ( anotherObj == this ) return true; if ( anotherObj == null ) return false; - if ( !(anotherObj instanceof --) ) return false; - if ( !super.equals(anotherObj) ) return false; + if ( anotherObj.getClass() != this.getClass() ) return false; -- o = (--) anotherObj; -- return true;