Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Kaegi2008-03-05 16:28:49 +0000
committerSimon Kaegi2008-03-05 16:28:49 +0000
commitd5f448e83ae3c0e6d1cb615697fdda372a967555 (patch)
tree7d19db6a738f66ce2bf8285619b0e45aa7bd9172 /bundles/org.eclipse.equinox.cm/src
parent19a1a2b7ff60e5e12aabb09b8abdfba9217edde8 (diff)
downloadrt.equinox.bundles-d5f448e83ae3c0e6d1cb615697fdda372a967555.tar.gz
rt.equinox.bundles-d5f448e83ae3c0e6d1cb615697fdda372a967555.tar.xz
rt.equinox.bundles-d5f448e83ae3c0e6d1cb615697fdda372a967555.zip
Bug 221473 [config] ConfigurationImpl contains broken equals() methodv20080305-1131
Diffstat (limited to 'bundles/org.eclipse.equinox.cm/src')
-rw-r--r--bundles/org.eclipse.equinox.cm/src/org/eclipse/equinox/internal/cm/ConfigurationImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.cm/src/org/eclipse/equinox/internal/cm/ConfigurationImpl.java b/bundles/org.eclipse.equinox.cm/src/org/eclipse/equinox/internal/cm/ConfigurationImpl.java
index 99e68ac6..b4e694f6 100644
--- a/bundles/org.eclipse.equinox.cm/src/org/eclipse/equinox/internal/cm/ConfigurationImpl.java
+++ b/bundles/org.eclipse.equinox.cm/src/org/eclipse/equinox/internal/cm/ConfigurationImpl.java
@@ -268,7 +268,7 @@ class ConfigurationImpl implements Configuration {
}
public boolean equals(Object obj) {
- return pid.equals(((Configuration) obj).getPid());
+ return (obj instanceof Configuration) && pid.equals(((Configuration) obj).getPid());
}
public int hashCode() {

Back to the top