ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1572973 - /ace/trunk/org.apache.ace.client.repository/src/org/apache/ace/client/repository/helper/base/VelocityArtifactPreprocessor.java
Date Fri, 28 Feb 2014 15:19:57 GMT
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;



Mime
View raw message