ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r888190 - /ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/AbstractArtifact.java
Date Mon, 07 Dec 2009 23:36:26 GMT
Author: maartenc
Date: Mon Dec  7 23:36:25 2009
New Revision: 888190

URL: http://svn.apache.org/viewvc?rev=888190&view=rev
Log:
Fixed inconsistency between equals() and hashCode()

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/AbstractArtifact.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/AbstractArtifact.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/AbstractArtifact.java?rev=888190&r1=888189&r2=888190&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/AbstractArtifact.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/AbstractArtifact.java
Mon Dec  7 23:36:25 2009
@@ -32,7 +32,7 @@
         }
         Artifact art = (Artifact) obj;
         return getModuleRevisionId().equals(art.getModuleRevisionId())
-                && getPublicationDate() == null ? true : getPublicationDate().equals(
+                && getPublicationDate() == null ? (art.getPublicationDate() == null)
: getPublicationDate().equals(
             art.getPublicationDate())
                 && getName().equals(art.getName())
                 && getExt().equals(art.getExt())



Mime
View raw message