hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1406436 - in /httpcomponents/httpclient/trunk: httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicIdGenerator.java httpclient/src/main/java/org/apache/http/impl/auth/DigestScheme.java
Date Wed, 07 Nov 2012 03:24:08 GMT
Author: sebb
Date: Wed Nov  7 03:24:08 2012
New Revision: 1406436

URL: http://svn.apache.org/viewvc?rev=1406436&view=rev
Log:
Formatter instances need to be closed

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicIdGenerator.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/auth/DigestScheme.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicIdGenerator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicIdGenerator.java?rev=1406436&r1=1406435&r2=1406436&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicIdGenerator.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/BasicIdGenerator.java
Wed Nov  7 03:24:08 2012
@@ -72,6 +72,7 @@ class BasicIdGenerator {
         buffer.append('.');
         Formatter formatter = new Formatter(buffer, Locale.US);
         formatter.format("%1$016x-%2$08x", this.count, rndnum);
+        formatter.close();
         buffer.append('.');
         buffer.append(this.hostname);
     }

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/auth/DigestScheme.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/auth/DigestScheme.java?rev=1406436&r1=1406435&r2=1406436&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/auth/DigestScheme.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/auth/DigestScheme.java
Wed Nov  7 03:24:08 2012
@@ -314,6 +314,7 @@ public class DigestScheme extends RFC261
         StringBuilder sb = new StringBuilder(256);
         Formatter formatter = new Formatter(sb, Locale.US);
         formatter.format("%08x", nounceCount);
+        formatter.close();
         String nc = sb.toString();
 
         if (cnonce == null) {



Mime
View raw message