@@ -44,6 +44,7 @@ String format(final Format format) {
4444 return this .format (format , RubyDateTimeFormatter .ZoneNameStyle .NONE );
4545 }
4646
47+ @ SuppressWarnings ("checkstyle:LeftCurly" )
4748 String format (final Format format , final RubyDateTimeFormatter .ZoneNameStyle zoneNameStyle ) {
4849 final StringBuilder builder = new StringBuilder ();
4950
@@ -371,6 +372,9 @@ String format(final Format format, final RubyDateTimeFormatter.ZoneNameStyle zon
371372 // %+ is not supported in formatter. %+ is only for parser.
372373 builder .append (token .getImmediate ().orElse ("" ));
373374 break ;
375+
376+ default :
377+ // Pass-through.
374378 }
375379 }
376380 }
@@ -616,12 +620,16 @@ private void appendYearWithoutCentury(
616620 * <li>MRI's {@code Time.zone} (the name of the time zone) cannot be set arbitrary.
617621 * It is set almost only from {@code localtime(3)} from the computer's environment,
618622 * such as the TZ environment variable.
619- * @see <a href="https://twitter.com/shyouhei/status/1245616200874209283">Tweet from @shyouhei (in Japanese)</a>
620- * @see <a href="https://twitter.com/nalsh/status/1245689453315670022">Tweet from @nalsh (in Japanese)</a>
623+ * <ul>
624+ * <li><a href="https://twitter.com/shyouhei/status/1245616200874209283">Tweet from @shyouhei (in Japanese)</a>
625+ * <li><a href="https://twitter.com/nalsh/status/1245689453315670022">Tweet from @nalsh (in Japanese)</a>
626+ * </ul>
621627 * <li>MRI's {@code Time#strptime} never sets the name of the time zone from its input.
622628 * The name of the time zone is set only from {@code Time.utc} or {@code Time.local}.
623- * @see <a href="https://docs.ruby-lang.org/en/2.7.0/Time.html#method-c-local">Time.local</a>
624- * @see <a href="https://docs.ruby-lang.org/en/2.7.0/Time.html#method-c-utc">Time.utc</a>
629+ * <ul>
630+ * <li><a href="https://docs.ruby-lang.org/en/2.7.0/Time.html#method-c-local">Time.local</a>
631+ * <li><a href="https://docs.ruby-lang.org/en/2.7.0/Time.html#method-c-utc">Time.utc</a>
632+ * </ul>
625633 * <li>Embulk uses only {@link java.time.Instant} as its internal timestamp representation.
626634 * </ol>
627635 *
@@ -679,6 +687,7 @@ private void appendYearWithoutCentury(
679687 *
680688 * <p>On the other hand, Embulk's legacy {@code TimestampFormatter} has used {@code org.jruby.util.RubyDateFormat}
681689 * directly. Unlike just {@code Time.strptime}, {@code RubyDateFormat} formats {@code "%Z"} into short names.
690+ *
682691 * @see <a href="https://github.com/jruby/jruby/blob/9.1.15.0/core/src/main/java/org/jruby/util/RubyDateFormat.java#L411-L419">RubyDateFormat#compilePattern</a>
683692 * @see <a href="https://github.com/jruby/jruby/blob/9.1.15.0/core/src/main/java/org/jruby/util/RubyDateFormat.java#L622-L624">RubyDateFormat#format</a>
684693 *
@@ -737,6 +746,8 @@ private void appendTimeZoneName(
737746 builder .append ("" );
738747 }
739748 break ;
749+ default :
750+ // Pass-through.
740751 }
741752 }
742753
@@ -872,6 +883,7 @@ private void appendLongFormatted(
872883 *
873884 * @see <a href="https://github.com/ruby/ruby/blob/v2_6_3/strftime.c#L985-L1092">iso8601wknum</a>
874885 */
886+ @ SuppressWarnings ("checkstyle:LeftCurly" )
875887 private static int calculateIso8601WeekNumber (final TemporalAccessor temporal ) {
876888 final int jan1DayOfWeek = calculateJan1DayOfWeek (temporal );
877889
0 commit comments