archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1427129 - /archiva/trunk/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java
Date Mon, 31 Dec 2012 14:14:53 GMT
Author: olamy
Date: Mon Dec 31 14:14:53 2012
New Revision: 1427129

URL: http://svn.apache.org/viewvc?rev=1427129&view=rev
Log:
move this to a static final

Modified:
    archiva/trunk/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java

Modified: archiva/trunk/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java?rev=1427129&r1=1427128&r2=1427129&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java
(original)
+++ archiva/trunk/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java
Mon Dec 31 14:14:53 2012
@@ -35,6 +35,8 @@ public class ArchivaArtifact
 
     private String baseVersion;
 
+    private static final int PRIME = 31;
+
     public ArchivaArtifact( String groupId, String artifactId, String version,
                             String classifier, String type, String repositoryId )
     {
@@ -146,7 +148,7 @@ public class ArchivaArtifact
     @Override
     public int hashCode()
     {
-        final int PRIME = 31;
+
         int result = 1;
         if ( model != null )
         {



Mime
View raw message