Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/launch/AbstractMavenRuntime.java')
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/launch/AbstractMavenRuntime.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/launch/AbstractMavenRuntime.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/launch/AbstractMavenRuntime.java
index 2f9d5e89..7d6742c5 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/launch/AbstractMavenRuntime.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/launch/AbstractMavenRuntime.java
@@ -94,4 +94,15 @@ public abstract class AbstractMavenRuntime implements MavenRuntime {
collector.addProjectEntry(facade);
}
+ public boolean equals(Object o) {
+ if(o != null && getClass().equals(o.getClass())) {
+ return getName().equals(((AbstractMavenRuntime) o).getName());
+ }
+ return false;
+ }
+
+ public int hashCode() {
+ return getName().hashCode();
+ }
+
}

Back to the top