From bb8164bb2c59e42f5858f55af00f7968528fce94 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Tue, 25 Sep 2012 01:01:50 +0000 Subject: [PATCH] Make immutable private variable final git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389670 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/lang3/time/FastDateParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java index 5fced119c..99e197ef1 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java @@ -491,7 +491,7 @@ public class FastDateParser implements DateParser, Serializable { /** * A Pattern 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]++"); /**