ICU-6726 Remove unneeded lower bound check in ICU4J
X-SVN-Rev: 25659
This commit is contained in:
parent
e217638d5e
commit
23845c6ec2
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user