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
This commit is contained in:
parent
4243b72fc2
commit
689f027749
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user