Author: bayard Date: Mon Oct 19 04:38:32 2009 New Revision: 826584 URL: http://svn.apache.org/viewvc?rev=826584&view=rev Log: Making private options variable final at Sebb's pointing out of thread safety improvement
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=826584&r1=826583&r2=826584&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 Mon Oct 19 04:38:32 2009 @@ -31,7 +31,7 @@ public static enum OPTION { escapePlus }; - private EnumSet<OPTION> options; + private final EnumSet<OPTION> options; public UnicodeUnescaper(OPTION... options) { if(options.length > 0) {