JavaCodeResult equals implementiert

This commit is contained in:
JanUlrich 2014-08-05 14:30:52 +02:00
parent 69668434da
commit 0357dd0903
2 changed files with 6 additions and 2 deletions

View File

@ -56,7 +56,11 @@ public class JavaCodeResult{
@Override @Override
public boolean equals(Object obj){ public boolean equals(Object obj){
throw new NotImplementedException(); if(!(obj instanceof JavaCodeResult))return false;
JavaCodeResult equals = (JavaCodeResult)obj;
if(!equals.getJavaCode().equals(this.getJavaCode()))return false;
if(!equals.getUnresolvedTPH().equals(this.getUnresolvedTPH()))return false;
return true;
} }
} }