mirror of https://github.com/apache/poi.git
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
dc40d3599c
commit
e5387b1e72
|
@ -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