ICU-6726 Remove unneeded lower bound check in ICU4J

X-SVN-Rev: 25659
This commit is contained in:
Jason Spieth 2009-03-26 20:40:59 +00:00
parent e217638d5e
commit 23845c6ec2
3 changed files with 3 additions and 3 deletions

View File

@ -222,7 +222,7 @@ public class RelativeDateFormat extends DateFormat {
String[] patterns = calData.getDateTimePatterns();
if (patterns != null && patterns.length >= 9) {
int glueIndex = 8;
if ((patterns.length > 9) && (patterns.length >= 13))
if (patterns.length >= 13)
{
switch (fDateStyle)
{

View File

@ -541,7 +541,7 @@ public class SimpleDateFormat extends DateFormat {
CalendarData calData = new CalendarData(cachedDefaultLocale, cal.getType());
String[] dateTimePatterns = calData.getDateTimePatterns();
int glueIndex = 8;
if ((dateTimePatterns.length > 9) && (dateTimePatterns.length >= 13))
if (dateTimePatterns.length >= 13)
{
glueIndex += (SHORT + 1);
}

View File

@ -3211,7 +3211,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable {
String pattern = null;
if ((timeStyle >= 0) && (dateStyle >= 0)) {
int glueIndex = 8;
if ((patterns.length > 9) && (patterns.length >= 13))
if (patterns.length >= 13)
{
glueIndex += (dateStyle + 1);
}