Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2006-01-16 15:47:38 +0000
committerPascal Rapicault2006-01-16 15:47:38 +0000
commit9c25dd54b2947bb9fadb19f9b147196bf9f10045 (patch)
tree8a70ca74fe92453f04151bcc835a5a2ae822edd2
parent7910961dc45ce4ee7dd1145815ad1cba1e04a70c (diff)
downloadrt.equinox.bundles-9c25dd54b2947bb9fadb19f9b147196bf9f10045.tar.gz
rt.equinox.bundles-9c25dd54b2947bb9fadb19f9b147196bf9f10045.tar.xz
rt.equinox.bundles-9c25dd54b2947bb9fadb19f9b147196bf9f10045.zip
fix the behavior of equals
-rw-r--r--bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/PluginVersionIdentifier.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/PluginVersionIdentifier.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/PluginVersionIdentifier.java
index e3472a6db..c8861e257 100644
--- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/PluginVersionIdentifier.java
+++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/PluginVersionIdentifier.java
@@ -221,7 +221,8 @@ public final class PluginVersionIdentifier {
public boolean equals(Object object) {
if (!(object instanceof PluginVersionIdentifier))
return false;
- return version.equals(object);
+ PluginVersionIdentifier v = (PluginVersionIdentifier) object;
+ return version.equals(v.version);
}
/**

Back to the top