From 3b39e7d15b5563246f8e986b7fdda3e35d74fac5 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 31 Dec 2012 14:14:53 +0000 Subject: [PATCH] move this to a static final git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427129 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/archiva/model/ArchivaArtifact.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) { -- 2.39.5