Skip to content
Snippets Groups Projects
Commit d4c370af authored by buczekp's avatar buczekp
Browse files

[LMS-1194] fixed system tests

SVN: 13070
parent 47e5a5f0
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,8 @@ public abstract class EntityTypePropertyType<T extends EntityType> implements Is ...@@ -118,6 +118,8 @@ public abstract class EntityTypePropertyType<T extends EntityType> implements Is
// Object // Object
// //
// NOTE: Equals and hashCode don't take into account entity type.
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@Override @Override
public boolean equals(Object obj) public boolean equals(Object obj)
...@@ -127,16 +129,13 @@ public abstract class EntityTypePropertyType<T extends EntityType> implements Is ...@@ -127,16 +129,13 @@ public abstract class EntityTypePropertyType<T extends EntityType> implements Is
return false; return false;
} }
EntityTypePropertyType<T> that = (EntityTypePropertyType<T>) obj; EntityTypePropertyType<T> that = (EntityTypePropertyType<T>) obj;
return getPropertyType().equals(that.getPropertyType()) return getPropertyType().equals(that.getPropertyType());
&& getEntityType().equals(that.getEntityType());
} }
@Override @Override
public int hashCode() public int hashCode()
{ {
int hashCode = getPropertyType().hashCode(); return getPropertyType().hashCode();
hashCode ^= getEntityType().hashCode();
return hashCode;
} }
// //
...@@ -160,5 +159,4 @@ public abstract class EntityTypePropertyType<T extends EntityType> implements Is ...@@ -160,5 +159,4 @@ public abstract class EntityTypePropertyType<T extends EntityType> implements Is
return entityType1.compareTo(entityType2); return entityType1.compareTo(entityType2);
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment