diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-12-18 10:40:43 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-12-18 10:40:43 -0800 |
commit | cf85c7a465d494ba9f56fb3b5b6d57c7fbbb1798 (patch) | |
tree | b7463363d2d05688cd12cb1d8b04cdf4582cd89f /luni | |
parent | 386ddaf3659003b7188188b5d9af6cc95c61254f (diff) | |
parent | f787a8787d0b7bcdc178ffc2e3343f1c1b02ed30 (diff) | |
download | libcore-cf85c7a465d494ba9f56fb3b5b6d57c7fbbb1798.zip libcore-cf85c7a465d494ba9f56fb3b5b6d57c7fbbb1798.tar.gz libcore-cf85c7a465d494ba9f56fb3b5b6d57c7fbbb1798.tar.bz2 |
Merge change I1e941570
* changes:
Depessimize string conversions.
Diffstat (limited to 'luni')
-rw-r--r-- | luni/src/main/java/java/util/Date.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/luni/src/main/java/java/util/Date.java b/luni/src/main/java/java/util/Date.java index 37f5b6a..3610847 100644 --- a/luni/src/main/java/java/util/Date.java +++ b/luni/src/main/java/java/util/Date.java @@ -714,11 +714,11 @@ public class Date implements Serializable, Cloneable, Comparable<Date> { + " " + cal.getTimeZone().getID() + " " + cal.get(Calendar.YEAR);//$NON-NLS-1$ //$NON-NLS-2$ } - private String toTwoDigits(int digit) { - if(digit >= 10) { - return "" + digit;//$NON-NLS-1$ + private String toTwoDigits(int n) { + if (n >= 10) { + return Integer.toString(n);//$NON-NLS-1$ } else { - return "0" + digit;//$NON-NLS-1$ + return "0" + n;//$NON-NLS-1$ } } |