From 689f02774901707d5597ef028fd876584d9bddcd Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Sat, 19 Oct 2013 14:12:15 +0000 Subject: [PATCH] Patch 55611 - Performance improvement in DateUtil.isADateFormat(int, String) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1533768 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/ss/usermodel/DateUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/ss/usermodel/DateUtil.java b/src/java/org/apache/poi/ss/usermodel/DateUtil.java index 49b5ad12d..6bd832dfb 100644 --- a/src/java/org/apache/poi/ss/usermodel/DateUtil.java +++ b/src/java/org/apache/poi/ss/usermodel/DateUtil.java @@ -299,7 +299,7 @@ public class DateUtil { * @see #isInternalDateFormat(int) */ - public static boolean isADateFormat(int formatIndex, String formatString) { + public static synchronized boolean isADateFormat(int formatIndex, String formatString) { if (formatString != null && formatIndex == lastFormatIndex && formatString.equals(lastFormatString)) { return cached;