Fixed bug in getDateInstance(int, TimeZone, Locale). See bz #26646.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Fredrik Westermarck 2004-02-04 18:52:59 +00:00
parent d1b0159e59
commit c8f42adee2
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* Copyright (c) 2002-2004 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -99,7 +99,7 @@ import java.util.TimeZone;
* @author Stephen Colebourne
* @author Nikolay Metchev
* @since 2.0
* @version $Id: FastDateFormat.java,v 1.17 2003/11/29 13:52:34 scolebourne Exp $
* @version $Id: FastDateFormat.java,v 1.18 2004/02/04 18:52:59 fredrik Exp $
*/
public class FastDateFormat extends Format {
// A lot of the speed in this class comes from caching, but some comes
@ -307,7 +307,7 @@ public class FastDateFormat extends Format {
if (timeZone != null) {
key = new Pair(key, timeZone);
}
if (locale == null) {
if (locale != null) {
key = new Pair(key, locale);
}