aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-12-31 14:14:53 +0000
committerOlivier Lamy <olamy@apache.org>2012-12-31 14:14:53 +0000
commit3b39e7d15b5563246f8e986b7fdda3e35d74fac5 (patch)
treecbd33b2ae23d6169c3387c57f6b995a347e69968 /archiva-modules
parenta708c81320adb2c87f17f6e6a48a974d17f258cf (diff)
downloadarchiva-3b39e7d15b5563246f8e986b7fdda3e35d74fac5.tar.gz
archiva-3b39e7d15b5563246f8e986b7fdda3e35d74fac5.zip
move this to a static final
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427129 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java b/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java
index 00a797236..75364a14d 100644
--- a/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java
+++ b/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/archiva/model/ArchivaArtifact.java
@@ -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 )
{