scolebourne 2004/10/07 17:09:01 Modified: lang/src/java/org/apache/commons/lang/time FastDateFormat.java StopWatch.java DateUtils.java Log: Add since tags for 2.1 Revision Changes Path 1.22 +12 -1 jakarta-commons/lang/src/java/org/apache/commons/lang/time/FastDateFormat.java Index: FastDateFormat.java =================================================================== RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/FastDateFormat.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- FastDateFormat.java 12 Sep 2004 05:03:26 -0000 1.21 +++ FastDateFormat.java 8 Oct 2004 00:09:01 -0000 1.22 @@ -219,6 +219,7 @@ * @return a localized standard date formatter * @throws IllegalArgumentException if the Locale has no date * pattern defined + * @since 2.1 */ public static FastDateFormat getDateInstance(int style) { return getDateInstance(style, null, null); @@ -233,6 +234,7 @@ * @return a localized standard date formatter * @throws IllegalArgumentException if the Locale has no date * pattern defined + * @since 2.1 */ public static FastDateFormat getDateInstance(int style, Locale locale) { return getDateInstance(style, null, locale); @@ -248,6 +250,7 @@ * @return a localized standard date formatter * @throws IllegalArgumentException if the Locale has no date * pattern defined + * @since 2.1 */ public static FastDateFormat getDateInstance(int style, TimeZone timeZone) { return getDateInstance(style, timeZone, null); @@ -301,6 +304,7 @@ * @return a localized standard time formatter * @throws IllegalArgumentException if the Locale has no time * pattern defined + * @since 2.1 */ public static FastDateFormat getTimeInstance(int style) { return getTimeInstance(style, null, null); @@ -315,6 +319,7 @@ * @return a localized standard time formatter * @throws IllegalArgumentException if the Locale has no time * pattern defined + * @since 2.1 */ public static FastDateFormat getTimeInstance(int style, Locale locale) { return getTimeInstance(style, null, locale); @@ -330,6 +335,7 @@ * @return a localized standard time formatter * @throws IllegalArgumentException if the Locale has no time * pattern defined + * @since 2.1 */ public static FastDateFormat getTimeInstance(int style, TimeZone timeZone) { return getTimeInstance(style, timeZone, null); @@ -385,6 +391,7 @@ * @return a localized standard date/time formatter * @throws IllegalArgumentException if the Locale has no date/time * pattern defined + * @since 2.1 */ public static FastDateFormat getDateTimeInstance( int dateStyle, int timeStyle) { @@ -401,6 +408,7 @@ * @return a localized standard date/time formatter * @throws IllegalArgumentException if the Locale has no date/time * pattern defined + * @since 2.1 */ public static FastDateFormat getDateTimeInstance( int dateStyle, int timeStyle, Locale locale) { @@ -418,6 +426,7 @@ * @return a localized standard date/time formatter * @throws IllegalArgumentException if the Locale has no date/time * pattern defined + * @since 2.1 */ public static FastDateFormat getDateTimeInstance( int dateStyle, int timeStyle, TimeZone timeZone) { @@ -787,6 +796,7 @@ * * @param millis the millisecond value to format * @return the formatted string + * @since 2.1 */ public String format(long millis) { return format(new Date(millis)); @@ -821,6 +831,7 @@ * @param millis the millisecond value to format * @param buf the buffer to format into * @return the specified string buffer + * @since 2.1 */ public StringBuffer format(long millis, StringBuffer buf) { return format(new Date(millis), buf); 1.10 +3 -1 jakarta-commons/lang/src/java/org/apache/commons/lang/time/StopWatch.java Index: StopWatch.java =================================================================== RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/StopWatch.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- StopWatch.java 25 Jul 2004 07:31:36 -0000 1.9 +++ StopWatch.java 8 Oct 2004 00:09:01 -0000 1.10 @@ -226,6 +226,7 @@ * @return the split time in milliseconds * * @throws IllegalStateException if the StopWatch has not yet been split. + * @since 2.1 */ public long getSplitTime() { if(this.splitState != STATE_SPLIT) { @@ -253,6 +254,7 @@ * <i>hours</i>:<i>minutes</i>:<i>seconds</i>.<i>milliseconds</i>.</p> * * @return the split time as a String + * @since 2.1 */ public String toSplitString() { return DurationFormatUtils.formatISO(getSplitTime()); 1.31 +6 -1 jakarta-commons/lang/src/java/org/apache/commons/lang/time/DateUtils.java Index: DateUtils.java =================================================================== RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/DateUtils.java,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- DateUtils.java 27 Sep 2004 03:14:15 -0000 1.30 +++ DateUtils.java 8 Oct 2004 00:09:01 -0000 1.31 @@ -41,18 +41,22 @@ public static final TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone("GMT"); /** * Number of milliseconds in a standard second. + * @since 2.1 */ public static final long MILLIS_PER_SECOND = 1000; /** * Number of milliseconds in a standard minute. + * @since 2.1 */ public static final long MILLIS_PER_MINUTE = 60 * MILLIS_PER_SECOND; /** * Number of milliseconds in a standard hour. + * @since 2.1 */ public static final long MILLIS_PER_HOUR = 60 * MILLIS_PER_MINUTE; /** * Number of milliseconds in a standard day. + * @since 2.1 */ public static final long MILLIS_PER_DAY = 24 * MILLIS_PER_HOUR; @@ -125,6 +129,7 @@ * @param cal2 the second calendar, not null * @return true if they represent the same day * @throws IllegalArgumentException if either calendar is <code>null</code> + * @since 2.1 */ public static boolean isSameDay(Calendar cal1, Calendar cal2) { if (cal1 == null || cal2 == null) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]