commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r610669 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DateUtils.java
Date Thu, 10 Jan 2008 04:42:51 GMT
Author: bayard
Date: Wed Jan  9 20:42:51 2008
New Revision: 610669

URL: http://svn.apache.org/viewvc?rev=610669&view=rev
Log:
Marking @since 2.4 on the new methods from LANG-383

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DateUtils.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DateUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DateUtils.java?rev=610669&r1=610668&r2=610669&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DateUtils.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DateUtils.java Wed Jan
 9 20:42:51 2008
@@ -413,6 +413,7 @@
      * @param amount the amount to set
      * @return a new Date object set with the specified value
      * @throws IllegalArgumentException if the date is null
+     * @since 2.4
      */
     public static Date setYears(Date date, int amount) {
         return set(date, Calendar.YEAR, amount);
@@ -427,6 +428,7 @@
      * @param amount the amount to set
      * @return a new Date object set with the specified value
      * @throws IllegalArgumentException if the date is null
+     * @since 2.4
      */
     public static Date setMonths(Date date, int amount) {
         return set(date, Calendar.MONTH, amount);
@@ -441,6 +443,7 @@
      * @param amount the amount to set
      * @return a new Date object set with the specified value
      * @throws IllegalArgumentException if the date is null
+     * @since 2.4
      */
     public static Date setDays(Date date, int amount) {
         return set(date, Calendar.DAY_OF_MONTH, amount);
@@ -456,6 +459,7 @@
      * @param amount the amount to set
      * @return a new Date object set with the specified value
      * @throws IllegalArgumentException if the date is null
+     * @since 2.4
      */
     public static Date setHours(Date date, int amount) {
         return set(date, Calendar.HOUR_OF_DAY, amount);
@@ -470,6 +474,7 @@
      * @param amount the amount to set
      * @return a new Date object set with the specified value
      * @throws IllegalArgumentException if the date is null
+     * @since 2.4
      */
     public static Date setMinutes(Date date, int amount) {
         return set(date, Calendar.MINUTE, amount);
@@ -484,6 +489,7 @@
      * @param amount the amount to set
      * @return a new Date object set with the specified value
      * @throws IllegalArgumentException if the date is null
+     * @since 2.4
      */
     public static Date setSeconds(Date date, int amount) {
         return set(date, Calendar.SECOND, amount);
@@ -498,6 +504,7 @@
      * @param amount the amount to set
      * @return a new Date object set with the specified value
      * @throws IllegalArgumentException if the date is null
+     * @since 2.4
      */
     public static Date setMilliseconds(Date date, int amount) {
         return set(date, Calendar.MILLISECOND, amount);
@@ -513,6 +520,7 @@
      * @param amount the amount to set
      * @return a new Date object set with the specified value
      * @throws IllegalArgumentException if the date is null
+     * @since 2.4
      */
     private static Date set(Date date, int calendarField, int amount) {
         if (date == null) {



Mime
View raw message