From: Olivier Lamy Date: Mon, 31 Dec 2012 14:14:53 +0000 (+0000) Subject: move this to a static final X-Git-Tag: archiva-1.4-M4~338 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3b39e7d15b5563246f8e986b7fdda3e35d74fac5;p=archiva.git move this to a static final git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427129 13f79535-47bb-0310-9956-ffa450edef68 --- 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 ) {