This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new a224a39b1 Simplify FastDatePrinter.TimeZoneNameRule.appendTo(Appendable, Calendar) a224a39b1 is described below commit a224a39b17ebc7830c34cd68ca54b5824e7af3a2 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Jun 3 07:25:30 2024 -0400 Simplify FastDatePrinter.TimeZoneNameRule.appendTo(Appendable, Calendar) --- src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java index ea1b6d8cc..1be4e644c 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java @@ -477,11 +477,8 @@ public class FastDatePrinter implements DatePrinter, Serializable { @Override public void appendTo(final Appendable buffer, final Calendar calendar) throws IOException { final TimeZone zone = calendar.getTimeZone(); - if (calendar.get(Calendar.DST_OFFSET) == 0) { - buffer.append(getTimeZoneDisplay(zone, false, style, locale)); - } else { - buffer.append(getTimeZoneDisplay(zone, true, style, locale)); - } + final boolean daylight = calendar.get(Calendar.DST_OFFSET) != 0; + buffer.append(getTimeZoneDisplay(zone, daylight, style, locale)); } /**