commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r672992 - /commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/URLCodec.java
Date Tue, 01 Jul 2008 04:34:19 GMT
Author: bayard
Date: Mon Jun 30 21:34:19 2008
New Revision: 672992

URL: http://svn.apache.org/viewvc?rev=672992&view=rev
Log:
Applying Sebb's patch - CODEC-70 - to improve thread safety

Modified:
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/URLCodec.java

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/URLCodec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/URLCodec.java?rev=672992&r1=672991&r2=672992&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/URLCodec.java (original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/net/URLCodec.java Mon Jun
30 21:34:19 2008
@@ -53,9 +53,9 @@
     /**
      * The default charset used for string decoding and encoding.
      */
-    protected String charset = CharacterEncodingNames.UTF8;
+    protected final String charset;
     
-    protected static byte ESCAPE_CHAR = '%';
+    protected static final byte ESCAPE_CHAR = '%';
     /**
      * BitSet of www-form-url safe characters.
      */
@@ -88,7 +88,7 @@
      * Default constructor.
      */
     public URLCodec() {
-        super();
+        this(CharacterEncodingNames.UTF8);
     }
 
     /**



Mime
View raw message