maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r543381 - /maven/components/trunk/maven-model/src/main/mdo/maven.mdo
Date Fri, 01 Jun 2007 03:47:32 GMT
Author: jvanzyl
Date: Thu May 31 20:47:31 2007
New Revision: 543381

URL: http://svn.apache.org/viewvc?view=rev&rev=543381
Log:
MNG-1849 Fix Extension.hashCode() throwing NPE if groupId or artifactId is null
Submitted by: David Hawkins


Modified:
    maven/components/trunk/maven-model/src/main/mdo/maven.mdo

Modified: maven/components/trunk/maven-model/src/main/mdo/maven.mdo
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-model/src/main/mdo/maven.mdo?view=diff&rev=543381&r1=543380&r2=543381
==============================================================================
--- maven/components/trunk/maven-model/src/main/mdo/maven.mdo (original)
+++ maven/components/trunk/maven-model/src/main/mdo/maven.mdo Thu May 31 20:47:31 2007
@@ -3888,9 +3888,9 @@
     public int hashCode()
     {
         int result = 17;
-        result = 37 * result + getArtifactId().hashCode();
-        result = 37 * result + getGroupId().hashCode();
-        result = 37 * result + getVersion() != null ? getVersion().hashCode() : 0;
+        result = 37 * result + getArtifactId() != null ? getArtifactId().hashCode() : 0;
                                                   
+        result = 37 * result + getGroupId() != null ? getGroupId().hashCode() : 0;      
                                                   
+        result = 37 * result + getVersion() != null ? getVersion().hashCode() : 0;      
  
         return result;
     }
             ]]>



Mime
View raw message