diff --git a/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java b/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java index b8a72aec7..7dff712b5 100644 --- a/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java +++ b/src/java/org/apache/commons/lang/text/ExtendedMessageFormat.java @@ -55,8 +55,10 @@ import org.apache.commons.lang.Validate; * *

Limitations inherited from java.text.MessageFormat: *

*

* @@ -281,7 +283,8 @@ public class ExtendedMessageFormat extends MessageFormat { try { return Integer.parseInt(result.toString()); } catch (NumberFormatException e) { - //we've already ensured only digits, so unless something outlandishly large was specified we should be okay. + // we've already ensured only digits, so unless something + // outlandishly large was specified we should be okay. } } error = !Character.isDigit(c); @@ -332,8 +335,7 @@ public class ExtendedMessageFormat extends MessageFormat { * Insert formats back into the pattern for toPattern() support. * * @param pattern source - * @param formats the Formats to insert - * @param metaFormat Format to format the Formats + * @param customPatterns The custom patterns to re-insert, if any * @return full pattern */ private String insertFormats(String pattern, ArrayList customPatterns) { diff --git a/src/java/org/apache/commons/lang/time/DateUtils.java b/src/java/org/apache/commons/lang/time/DateUtils.java index ad3c5d267..d39542f33 100644 --- a/src/java/org/apache/commons/lang/time/DateUtils.java +++ b/src/java/org/apache/commons/lang/time/DateUtils.java @@ -29,12 +29,15 @@ import java.util.TimeZone; *

A suite of utilities surrounding the use of the * {@link java.util.Calendar} and {@link java.util.Date} object.

* - *

DateUtils contains a lot of common methods considering manipulations of Dates or Calendars. - * Some methods require some extra explanation. - * The truncate and round methods could be considered the Math.floor(), Math.ceil() or Math.round versions for dates + *

DateUtils contains a lot of common methods considering manipulations + * of Dates or Calendars. Some methods require some extra explanation. + * The truncate and round methods could be considered the Math.floor(), + * Math.ceil() or Math.round versions for dates * This way date-fields will be ignored in bottom-up order. - * As a complement to these methods we've introduced some fragment-methods. With these methods the Date-fields will be ignored in top-down order. - * Since a date without a year is not a valid date, you have to decide in what kind of date-field you want your result, for instance milliseconds or days. + * As a complement to these methods we've introduced some fragment-methods. + * With these methods the Date-fields will be ignored in top-down order. + * Since a date without a year is not a valid date, you have to decide in what + * kind of date-field you want your result, for instance milliseconds or days. *

* * @@ -1069,7 +1072,8 @@ public class DateUtils { *
  • January 1, 2008 7:15:10.538 with Calendar.SECOND as fragment will return 538
  • *
  • January 6, 2008 7:15:10.538 with Calendar.SECOND as fragment will return 538
  • *
  • January 6, 2008 7:15:10.538 with Calendar.MINUTE as fragment will return 10538 (10*1000 + 538)
  • - *
  • January 16, 2008 7:15:10.538 with Calendar.MILLISECOND as fragment will return 0 (a millisecond cannot be split in milliseconds)
  • + *
  • January 16, 2008 7:15:10.538 with Calendar.MILLISECOND as fragment will return 0 + * (a millisecond cannot be split in milliseconds)
  • * *

    * @@ -1102,10 +1106,14 @@ public class DateUtils { * *

    *

    *

    * @@ -1138,11 +1146,14 @@ public class DateUtils { * *

    *

    *

    * @@ -1175,11 +1186,14 @@ public class DateUtils { * *

    *

    *

    * @@ -1212,11 +1226,14 @@ public class DateUtils { * *

    *

    *

    * @@ -1249,10 +1266,14 @@ public class DateUtils { * *

    *

    *

    * @@ -1284,10 +1305,14 @@ public class DateUtils { * *

    *

    *

    * @@ -1320,11 +1345,14 @@ public class DateUtils { * *

    *

    *

    * @@ -1357,11 +1385,14 @@ public class DateUtils { * *

    *

    *

    * @@ -1394,11 +1425,16 @@ public class DateUtils { * *

    *

    *

    *