mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-10484 Fixed JDK javac compiler warnings.
X-SVN-Rev: 34909
This commit is contained in:
parent
e084dcaecb
commit
e492bb6e02
3 changed files with 5 additions and 11 deletions
|
@ -343,7 +343,7 @@ public class MeasureFormat extends UFormat {
|
|||
T appendable, FieldPosition fieldPosition, Measure... measures) {
|
||||
// fast track for trivial cases
|
||||
if (measures.length == 0) {
|
||||
return (T) appendable;
|
||||
return appendable;
|
||||
}
|
||||
if (measures.length == 1) {
|
||||
return formatMeasure(measures[0], appendable, fieldPosition);
|
||||
|
|
|
@ -2685,6 +2685,7 @@ public class SimpleDateFormat extends DateFormat {
|
|||
* @internal
|
||||
* @deprecated This API is ICU internal only.
|
||||
*/
|
||||
@SuppressWarnings("fallthrough")
|
||||
private int subParse(String text, int start, char ch, int count,
|
||||
boolean obeyCount, boolean allowNegative,
|
||||
boolean[] ambiguousYear, Calendar cal, MessageFormat numericLeapMonthFormatter)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
**************************************************************************
|
||||
* Copyright (C) 2008-2013, Google, International Business Machines
|
||||
* Copyright (C) 2008-2014, Google, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
**************************************************************************
|
||||
*/
|
||||
|
@ -35,16 +35,9 @@ public class TimeUnit extends MeasureUnit {
|
|||
* @stable ICU 4.0
|
||||
*/
|
||||
public static TimeUnit[] values() {
|
||||
return new TimeUnit[] {
|
||||
(TimeUnit) SECOND,
|
||||
(TimeUnit) MINUTE,
|
||||
(TimeUnit) HOUR,
|
||||
(TimeUnit) DAY,
|
||||
(TimeUnit) WEEK,
|
||||
(TimeUnit) MONTH,
|
||||
(TimeUnit) YEAR};
|
||||
return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR };
|
||||
}
|
||||
|
||||
|
||||
private Object writeReplace() throws ObjectStreamException {
|
||||
return new MeasureUnitProxy(type, subType);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue