Fixed metadata equals. Value should not be in there.

This commit is contained in:
Kai Zimmermann
2016-03-30 09:08:19 +02:00
parent 292ca31768
commit d21ed45054
2 changed files with 1 additions and 20 deletions

View File

@@ -293,7 +293,7 @@ public class DistributionSet extends NamedVersionedEntity {
* Searches through modules for the given type. * Searches through modules for the given type.
* *
* @param type * @param type
* to seach for * to search for
* @return SoftwareModule of given type or <code>null</code> if not in the * @return SoftwareModule of given type or <code>null</code> if not in the
* list. * list.
*/ */
@@ -308,26 +308,15 @@ public class DistributionSet extends NamedVersionedEntity {
return null; return null;
} }
/**
* @return the type
*/
public DistributionSetType getType() { public DistributionSetType getType() {
return type; return type;
} }
/**
* @param type
* the type to set
*/
public void setType(final DistributionSetType type) { public void setType(final DistributionSetType type) {
this.type = type; this.type = type;
} }
/**
* @return the complete
*/
public boolean isComplete() { public boolean isComplete() {
return complete; return complete;
} }
} }

View File

@@ -96,7 +96,6 @@ public class DistributionSetMetadata implements Serializable {
int result = 1; int result = 1;
result = prime * result + (distributionSet == null ? 0 : distributionSet.hashCode()); result = prime * result + (distributionSet == null ? 0 : distributionSet.hashCode());
result = prime * result + (key == null ? 0 : key.hashCode()); result = prime * result + (key == null ? 0 : key.hashCode());
result = prime * result + (value == null ? 0 : value.hashCode());
return result; return result;
} }
@@ -126,13 +125,6 @@ public class DistributionSetMetadata implements Serializable {
} else if (!key.equals(other.key)) { } else if (!key.equals(other.key)) {
return false; return false;
} }
if (value == null) {
if (other.value != null) {
return false;
}
} else if (!value.equals(other.value)) {
return false;
}
return true; return true;
} }