commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r826946 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java
Date Tue, 20 Oct 2009 04:16:38 GMT
Author: bayard
Date: Tue Oct 20 04:16:38 2009
New Revision: 826946

URL: http://svn.apache.org/viewvc?rev=826946&view=rev
Log:
Fixing compile error introduced after making variable final but leaving a path in which it
can miss getting initialized

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java?rev=826946&r1=826945&r2=826946&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/UnicodeUnescaper.java
Tue Oct 20 04:16:38 2009
@@ -31,11 +31,14 @@
 
     public static enum OPTION { escapePlus };
 
+    // TODO: Create an OptionsSet class to hide some of the conditional logic below
     private final EnumSet<OPTION> options;
 
     public UnicodeUnescaper(OPTION... options) {
         if(options.length > 0) {
             this.options = EnumSet.copyOf(Arrays.asList(options));
+        } else {
+            this.options = null;
         }
     }
 



Mime
View raw message