]> source.dussan.org Git - archiva.git/commitdiff
move this to a static final
authorOlivier Lamy <olamy@apache.org>
Mon, 31 Dec 2012 14:14:53 +0000 (14:14 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 31 Dec 2012 14:14:53 +0000 (14:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427129 13f79535-47bb-0310-9956-ffa450edef68

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

index 00a79723646686a061975e20b4f028fcb7deb898..75364a14d046997c32f31c784a7c1b1360a35482 100644 (file)
@@ -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 )
         {