commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1389670 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
Date Tue, 25 Sep 2012 01:01:51 GMT
Author: sebb
Date: Tue Sep 25 01:01:50 2012
New Revision: 1389670

URL: http://svn.apache.org/viewvc?rev=1389670&view=rev
Log:
Make immutable private variable final

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java?rev=1389670&r1=1389669&r2=1389670&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
Tue Sep 25 01:01:50 2012
@@ -491,7 +491,7 @@ public class FastDateParser implements D
     /**
      * A <code>Pattern</code> to parse the user supplied SimpleDateFormat pattern
      */
-    private static Pattern formatPattern= Pattern.compile(
+    private static final Pattern formatPattern= Pattern.compile(
             "D+|E+|F+|G+|H+|K+|M+|S+|W+|Z+|a+|d+|h+|k+|m+|s+|w+|y+|z+|''|'[^']++(''[^']*+)*+'|[^'A-Za-z]++");
     
     /**



Mime
View raw message