@@ -192,7 +192,7 @@ static Iso8601_Rule getRule(final int tokenLen) {
192192 /**
193193 * Constructs an instance of {@code Iso8601_Rule} with the specified properties.
194194 *
195- * @param length The number of characters in output (unless Z is output)
195+ * @param length The number of characters in output (unless Z is output).
196196 */
197197 Iso8601_Rule (final int length ) {
198198 this .length = length ;
@@ -247,8 +247,8 @@ private interface NumberRule extends Rule {
247247 /**
248248 * Appends the specified value to the output buffer based on the rule implementation.
249249 *
250- * @param buffer the output buffer
251- * @param value the value to be appended
250+ * @param buffer the output buffer.
251+ * @param value the value to be appended.
252252 * @throws IOException if an I/O error occurs.
253253 */
254254 void appendTo (Appendable buffer , int value ) throws IOException ;
@@ -265,8 +265,8 @@ private static final class PaddedNumberField implements NumberRule {
265265 /**
266266 * Constructs an instance of {@link PaddedNumberField}.
267267 *
268- * @param field the field
269- * @param size size of the output field
268+ * @param field the field.
269+ * @param size size of the output field.
270270 */
271271 PaddedNumberField (final int field , final int size ) {
272272 if (size < 3 ) {
@@ -302,24 +302,24 @@ public int estimateLength() {
302302 return size ;
303303 }
304304 }
305- // Rules
305+
306306 /**
307307 * Inner class defining a rule.
308308 */
309309 private interface Rule {
310310 /**
311311 * Appends the value of the specified calendar to the output buffer based on the rule implementation.
312312 *
313- * @param buf the output buffer
314- * @param calendar calendar to be appended
313+ * @param buf the output buffer.
314+ * @param calendar calendar to be appended.
315315 * @throws IOException if an I/O error occurs.
316316 */
317317 void appendTo (Appendable buf , Calendar calendar ) throws IOException ;
318318
319319 /**
320320 * Returns the estimated length of the result.
321321 *
322- * @return the estimated length
322+ * @return the estimated length of the result.
323323 */
324324 int estimateLength ();
325325 }
@@ -334,7 +334,7 @@ private static final class StringLiteral implements Rule {
334334 * Constructs a new instance of {@link StringLiteral}
335335 * to hold the specified value.
336336 *
337- * @param value the string literal
337+ * @param value the string literal.
338338 */
339339 StringLiteral (final String value ) {
340340 this .value = value ;
@@ -367,8 +367,8 @@ private static final class TextField implements Rule {
367367 * Constructs an instance of {@link TextField}
368368 * with the specified field and values.
369369 *
370- * @param field the field
371- * @param values the field values
370+ * @param field the field.
371+ * @param values the field values.
372372 */
373373 TextField (final int field , final String [] values ) {
374374 this .field = field ;
@@ -409,10 +409,10 @@ private static final class TimeZoneDisplayKey {
409409 /**
410410 * Constructs an instance of {@link TimeZoneDisplayKey} with the specified properties.
411411 *
412- * @param timeZone the time zone
413- * @param daylight adjust the style for daylight saving time if {@code true}
414- * @param style the time zone style
415- * @param locale the time zone locale
412+ * @param timeZone the time zone.
413+ * @param daylight adjust the style for daylight saving time if {@code true}.
414+ * @param style the time zone style.
415+ * @param locale the time zone locale.
416416 */
417417 TimeZoneDisplayKey (final TimeZone timeZone ,
418418 final boolean daylight , final int style , final Locale locale ) {
@@ -463,9 +463,9 @@ private static final class TimeZoneNameRule implements Rule {
463463 /**
464464 * Constructs an instance of {@link TimeZoneNameRule} with the specified properties.
465465 *
466- * @param timeZone the time zone
467- * @param locale the locale
468- * @param style the style
466+ * @param timeZone the time zone.
467+ * @param locale the locale.
468+ * @param style the style.
469469 */
470470 TimeZoneNameRule (final TimeZone timeZone , final Locale locale , final int style ) {
471471 this .locale = LocaleUtils .toLocale (locale );
@@ -508,7 +508,7 @@ private static final class TimeZoneNumberRule implements Rule {
508508 /**
509509 * Constructs an instance of {@link TimeZoneNumberRule} with the specified properties.
510510 *
511- * @param colon add colon between HH and MM in the output if {@code true}
511+ * @param colon add colon between HH and MM in the output if {@code true}.
512512 */
513513 TimeZoneNumberRule (final boolean colon ) {
514514 this .colon = colon ;
@@ -559,7 +559,7 @@ private static final class TwelveHourField implements NumberRule {
559559 * Constructs an instance of {@link TwelveHourField} with the specified
560560 * {@link NumberRule}.
561561 *
562- * @param rule the rule
562+ * @param rule the rule.
563563 */
564564 TwelveHourField (final NumberRule rule ) {
565565 this .rule = rule ;
@@ -604,7 +604,7 @@ private static final class TwentyFourHourField implements NumberRule {
604604 * Constructs an instance of {@link TwentyFourHourField} with the specified
605605 * {@link NumberRule}.
606606 *
607- * @param rule the rule
607+ * @param rule the rule.
608608 */
609609 TwentyFourHourField (final NumberRule rule ) {
610610 this .rule = rule ;
@@ -807,7 +807,7 @@ private static final class UnpaddedNumberField implements NumberRule {
807807 /**
808808 * Constructs an instance of {@link UnpaddedNumberField} with the specified field.
809809 *
810- * @param field the field
810+ * @param field the field.
811811 */
812812 UnpaddedNumberField (final int field ) {
813813 this .field = field ;
@@ -909,7 +909,7 @@ public int estimateLength() {
909909 *
910910 * @param buffer the buffer to append to.
911911 * @param value the value to append digits from.
912- * @throws IOException If an I/O error occurs
912+ * @throws IOException If an I/O error occurs.
913913 */
914914 private static void appendDigits (final Appendable buffer , final int value ) throws IOException {
915915 buffer .append ((char ) (value / 10 + '0' ));
@@ -922,7 +922,7 @@ private static void appendDigits(final Appendable buffer, final int value) throw
922922 * @param buffer the buffer to append to.
923923 * @param value the value to append digits from.
924924 * @param minFieldWidth Minimum field width.
925- * @throws IOException If an I/O error occurs
925+ * @throws IOException If an I/O error occurs.
926926 */
927927 private static void appendFullDigits (final Appendable buffer , int value , int minFieldWidth ) throws IOException {
928928 // specialized paths for 1 to 4 digits -> avoid the memory allocation from the temporary work array
@@ -1000,11 +1000,11 @@ static void clear() {
10001000 /**
10011001 * Gets the time zone display name, using a cache for performance.
10021002 *
1003- * @param tz the zone to query
1004- * @param daylight true if daylight savings
1005- * @param style the style to use {@code TimeZone. LONG} or {@code TimeZone. SHORT}
1006- * @param locale the locale to use
1007- * @return the textual name of the time zone
1003+ * @param tz the zone to query.
1004+ * @param daylight true if daylight savings.
1005+ * @param style the style to use {@link TimeZone# LONG} or {@link TimeZone# SHORT}.
1006+ * @param locale the locale to use.
1007+ * @return the textual name of the time zone.
10081008 */
10091009 static String getTimeZoneDisplay (final TimeZone tz , final boolean daylight , final int style , final Locale locale ) {
10101010 final TimeZoneDisplayKey key = new TimeZoneDisplayKey (tz , daylight , style , locale );
@@ -1037,15 +1037,14 @@ static String getTimeZoneDisplay(final TimeZone tz, final boolean daylight, fina
10371037 */
10381038 private transient int maxLengthEstimate ;
10391039
1040- // Constructor
10411040 /**
10421041 * Constructs a new FastDatePrinter.
10431042 * Use {@link FastDateFormat#getInstance(String, TimeZone, Locale)} or another variation of the
10441043 * factory methods of {@link FastDateFormat} to get a cached FastDatePrinter instance.
10451044 *
1046- * @param pattern {@link java.text.SimpleDateFormat} compatible pattern
1047- * @param timeZone non-null time zone to use
1048- * @param locale non-null locale to use
1045+ * @param pattern {@link java.text.SimpleDateFormat} compatible pattern.
1046+ * @param timeZone non-null time zone to use.
1047+ * @param locale non-null locale to use.
10491048 * @throws NullPointerException if pattern, timeZone, or locale is null.
10501049 */
10511050 protected FastDatePrinter (final String pattern , final TimeZone timeZone , final Locale locale ) {
@@ -1059,10 +1058,10 @@ protected FastDatePrinter(final String pattern, final TimeZone timeZone, final L
10591058 * Performs the formatting by applying the rules to the
10601059 * specified calendar.
10611060 *
1062- * @param calendar the calendar to format
1063- * @param buf the buffer to format into
1061+ * @param calendar the calendar to format.
1062+ * @param buf the buffer to format into.
10641063 * @param <B> the Appendable class type, usually StringBuilder or StringBuffer.
1065- * @return the specified string buffer
1064+ * @return the specified string buffer.
10661065 */
10671066 private <B extends Appendable > B applyRules (final Calendar calendar , final B buf ) {
10681067 try {
@@ -1079,9 +1078,9 @@ private <B extends Appendable> B applyRules(final Calendar calendar, final B buf
10791078 * Performs the formatting by applying the rules to the
10801079 * specified calendar.
10811080 *
1082- * @param calendar the calendar to format
1083- * @param buf the buffer to format into
1084- * @return the specified string buffer
1081+ * @param calendar the calendar to format.
1082+ * @param buf the buffer to format into.
1083+ * @return the specified string buffer.
10851084 * @deprecated Use {@link #format(Calendar)} or {@link #format(Calendar, Appendable)}
10861085 */
10871086 @ Deprecated
@@ -1102,8 +1101,8 @@ private String applyRulesToString(final Calendar c) {
11021101 /**
11031102 * Compares two objects for equality.
11041103 *
1105- * @param obj the object to compare to
1106- * @return {@code true} if equal
1104+ * @param obj the object to compare to.
1105+ * @return {@code true} if equal.
11071106 */
11081107 @ Override
11091108 public boolean equals (final Object obj ) {
@@ -1209,7 +1208,7 @@ public StringBuffer format(final long millis, final StringBuffer buf) {
12091208 /**
12101209 * Formats a {@link Date}, {@link Calendar} or
12111210 * {@link Long} (milliseconds) object.
1212- * @param obj the object to format
1211+ * @param obj the object to format.
12131212 * @return The formatted value.
12141213 * @since 3.5
12151214 */
@@ -1226,15 +1225,14 @@ String format(final Object obj) {
12261225 throw new IllegalArgumentException ("Unknown class: " + ClassUtils .getName (obj , "<null>" ));
12271226 }
12281227
1229- // Format methods
12301228 /**
12311229 * Formats a {@link Date}, {@link Calendar} or
12321230 * {@link Long} (milliseconds) object.
12331231 * @deprecated Use {{@link #format(Date)}, {{@link #format(Calendar)}, {{@link #format(long)}.
1234- * @param obj the object to format
1235- * @param toAppendTo the buffer to append to
1236- * @param pos the position - ignored
1237- * @return the buffer passed in
1232+ * @param obj the object to format.
1233+ * @param toAppendTo the buffer to append to.
1234+ * @param pos the position; ignored.
1235+ * @return the buffer passed in.
12381236 */
12391237 @ Deprecated
12401238 @ Override
@@ -1266,7 +1264,7 @@ public Locale getLocale() {
12661264 * <p>The actual formatted length will almost always be less than or
12671265 * equal to this amount.</p>
12681266 *
1269- * @return the maximum formatted length
1267+ * @return the maximum formatted length.
12701268 */
12711269 public int getMaxLengthEstimate () {
12721270 return maxLengthEstimate ;
@@ -1291,7 +1289,7 @@ public TimeZone getTimeZone() {
12911289 /**
12921290 * Returns a hash code compatible with equals.
12931291 *
1294- * @return a hash code compatible with equals
1292+ * @return a hash code compatible with equals.
12951293 */
12961294 @ Override
12971295 public int hashCode () {
@@ -1325,8 +1323,8 @@ private Calendar newCalendar() {
13251323 /**
13261324 * Returns a list of Rules given a pattern.
13271325 *
1328- * @return a {@link List} of Rule objects
1329- * @throws IllegalArgumentException if pattern is invalid
1326+ * @return a {@link List} of Rule objects.
1327+ * @throws IllegalArgumentException if pattern is invalid.
13301328 */
13311329 protected List <Rule > parsePattern () {
13321330 final DateFormatSymbols symbols = new DateFormatSymbols (locale );
@@ -1473,9 +1471,9 @@ protected List<Rule> parsePattern() {
14731471 /**
14741472 * Performs the parsing of tokens.
14751473 *
1476- * @param pattern the pattern
1477- * @param indexRef index references
1478- * @return parsed token
1474+ * @param pattern the pattern.
1475+ * @param indexRef index references.
1476+ * @return parsed token.
14791477 */
14801478 protected String parseToken (final String pattern , final int [] indexRef ) {
14811479 final StringBuilder buf = new StringBuilder ();
@@ -1523,7 +1521,6 @@ protected String parseToken(final String pattern, final int[] indexRef) {
15231521 return buf .toString ();
15241522 }
15251523
1526- // Serializing
15271524 /**
15281525 * Create the object after serialization. This implementation reinitializes the
15291526 * transient properties.
@@ -1540,9 +1537,9 @@ private void readObject(final ObjectInputStream in) throws IOException, ClassNot
15401537 /**
15411538 * Gets an appropriate rule for the padding required.
15421539 *
1543- * @param field the field to get a rule for
1544- * @param padding the padding required
1545- * @return a new rule with the correct padding
1540+ * @param field the field to get a rule for.
1541+ * @param padding the padding required.
1542+ * @return a new rule with the correct padding.
15461543 */
15471544 protected NumberRule selectNumberRule (final int field , final int padding ) {
15481545 switch (padding ) {
@@ -1558,7 +1555,7 @@ protected NumberRule selectNumberRule(final int field, final int padding) {
15581555 /**
15591556 * Gets a debugging string version of this formatter.
15601557 *
1561- * @return a debugging string
1558+ * @return a debugging string.
15621559 */
15631560 @ Override
15641561 public String toString () {
0 commit comments