You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by ja...@apache.org on 2014/02/28 16:19:57 UTC

svn commit: r1572973 - /ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java

Author: jawi
Date: Fri Feb 28 15:19:56 2014
New Revision: 1572973

URL: http://svn.apache.org/r1572973
Log:
Use SoftReference for content hashes as well.

Modified:
    ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java

Modified: ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java?rev=1572973&r1=1572972&r2=1572973&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java (original)
+++ ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java Fri Feb 28 15:19:56 2014
@@ -223,7 +223,7 @@ public class VelocityArtifactPreprocesso
         if (hash == null) {
             try {
                 hash = hash(getBytesFromUrl(getFullUrl(url, target, version)));
-                m_cachedHashes.put(key, new WeakReference<String>(hash));
+                m_cachedHashes.put(key, new SoftReference<String>(hash));
             }
             catch (IOException e) {
                 return null;