Skip to content

Commit

Permalink
Fix #170 - AllKnownEEsResolutionHints is missing equals/hashcode causing
Browse files Browse the repository at this point in the history
target resolution for every project

Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
  • Loading branch information
laeubi authored and mickaelistria committed Jul 3, 2021
1 parent c339cbe commit 3caa87d
Showing 1 changed file with 18 additions and 0 deletions.
Expand Up @@ -16,6 +16,7 @@
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Objects;

import org.eclipse.equinox.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.p2.metadata.IRequirement;
Expand Down Expand Up @@ -62,4 +63,21 @@ public Collection<IInstallableUnit> getTemporaryAdditions() {
return temporaryUnits.values();
}

@Override
public int hashCode() {
return Objects.hash(temporaryUnits);
}

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
AllKnownEEsResolutionHints other = (AllKnownEEsResolutionHints) obj;
return Objects.equals(temporaryUnits, other.temporaryUnits);
}

}

0 comments on commit 3caa87d

Please sign in to comment.