Author: krosenvold
Date: Tue Feb  1 15:29:32 2011
New Revision: 1066064

URL: http://svn.apache.org/viewvc?rev=1066064&view=rev
Log:
[MNG-4996] Made scope and version volatile on artifact

Resisted the urge to make *everything* threadsafe on this class, which I will
happily admit has been there for a long time.

Modified:
    
maven/maven-3/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

Modified: 
maven/maven-3/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
URL: 
http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java?rev=1066064&r1=1066063&r2=1066064&view=diff
==============================================================================
--- 
maven/maven-3/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
 (original)
+++ 
maven/maven-3/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
 Tue Feb  1 15:29:32 2011
@@ -53,7 +53,7 @@ public class DefaultArtifact
 
     private final String classifier;
 
-    private String scope;
+    private volatile String scope;
 
     private volatile File file;
 
@@ -67,7 +67,7 @@ public class DefaultArtifact
 
     private List<String> dependencyTrail;
 
-    private String version;
+    private volatile String version;
 
     private VersionRange versionRange;
 


Reply via email to