Don't mutate parameters

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1567799 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2014-02-12 23:25:58 +00:00
parent 5932b49770
commit 9135f2d28c
1 changed files with 4 additions and 3 deletions

View File

@ -1233,12 +1233,13 @@ public class FastDatePrinter implements DatePrinter, Serializable {
* @param locale the timezone locale
*/
TimeZoneDisplayKey(final TimeZone timeZone,
final boolean daylight, int style, final Locale locale) {
final boolean daylight, final int style, final Locale locale) {
mTimeZone = timeZone;
if (daylight) {
style |= 0x80000000;
mStyle = style | 0x80000000;
} else {
mStyle = style;
}
mStyle = style;
mLocale = locale;
}