commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/math NumberUtils.java
Date Fri, 08 Oct 2004 00:07:59 GMT
scolebourne    2004/10/07 17:07:59

  Modified:    lang/src/java/org/apache/commons/lang/builder
                        ReflectionToStringBuilder.java ToStringStyle.java
                        EqualsBuilder.java
               lang/src/java/org/apache/commons/lang/math NumberUtils.java
  Log:
  Add since tags for 2.1
  
  Revision  Changes    Path
  1.21      +7 -1      jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java
  
  Index: ReflectionToStringBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ReflectionToStringBuilder.java	1 Jul 2004 17:50:37 -0000	1.20
  +++ ReflectionToStringBuilder.java	8 Oct 2004 00:07:59 -0000	1.21
  @@ -25,7 +25,7 @@
   
   /**
    * <p>
  - * Assists in implementing {@link Object#toString()}methods using reflection.
  + * Assists in implementing {@link Object#toString()} methods using reflection.
    * </p>
    * 
    * <p>
  @@ -294,6 +294,7 @@
        * @return the String result
        * @throws IllegalArgumentException
        *                  if the Object is <code>null</code>
  +     * @since 2.1
        */
       public static String toString(Object object, ToStringStyle style, boolean outputTransients,
boolean outputStatics) {
           return toString(object, style, outputTransients, outputStatics, null);
  @@ -346,6 +347,7 @@
        * @return the String result
        * @throws IllegalArgumentException
        *                  if the Object is <code>null</code>
  +     * @since 2.1
        */
       public static String toString(Object object, ToStringStyle style, boolean outputTransients,
boolean outputStatics,
               Class reflectUpToClass) {
  @@ -397,6 +399,7 @@
        * @return the String result
        * @throws IllegalArgumentException
        *                  if the Object is <code>null</code>
  +     * @since 2.1
        */
       public static String toString(Object object, ToStringStyle style, boolean outputTransients,
Class reflectUpToClass) {
           return new ReflectionToStringBuilder(object, style, null, reflectUpToClass, outputTransients).toString();
  @@ -542,6 +545,7 @@
        *                  whether to include transient fields
        * @param outputStatics
        *                  whether to include static fields
  +     * @since 2.1
        */
       public ReflectionToStringBuilder(Object object, ToStringStyle style, StringBuffer buffer,
Class reflectUpToClass,
               boolean outputTransients, boolean outputStatics) {
  @@ -690,6 +694,7 @@
        * </p>
        * 
        * @return Whether or not to append static fields.
  +     * @since 2.1
        */
       public boolean isAppendStatics() {
           return this.appendStatics;
  @@ -737,6 +742,7 @@
        * 
        * @param appendStatics
        *                  Whether or not to append static fields.
  +     * @since 2.1
        */
       public void setAppendStatics(boolean appendStatics) {
           this.appendStatics = appendStatics;
  
  
  
  1.33      +2 -1      jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ToStringStyle.java
  
  Index: ToStringStyle.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ToStringStyle.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- ToStringStyle.java	1 Jul 2004 17:40:10 -0000	1.32
  +++ ToStringStyle.java	8 Oct 2004 00:07:59 -0000	1.33
  @@ -69,6 +69,7 @@
       
       /**
        * The short prefix toString style.
  +     * @since 2.1
        */
       public static final ToStringStyle SHORT_PREFIX_STYLE = new ShortPrefixToStringStyle();
   
  
  
  
  1.27      +2 -1      jakarta-commons/lang/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
  
  Index: EqualsBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/EqualsBuilder.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- EqualsBuilder.java	26 Aug 2004 05:46:45 -0000	1.26
  +++ EqualsBuilder.java	8 Oct 2004 00:07:59 -0000	1.27
  @@ -747,6 +747,7 @@
        * Sets the <code>isEquals</code> value.
        * 
        * @param isEquals The value to set.
  +     * @since 2.1
        */
       protected void setEquals(boolean isEquals) {
           this.isEquals = isEquals;
  
  
  
  1.19      +3 -1      jakarta-commons/lang/src/java/org/apache/commons/lang/math/NumberUtils.java
  
  Index: NumberUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/math/NumberUtils.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- NumberUtils.java	18 Feb 2004 22:56:13 -0000	1.18
  +++ NumberUtils.java	8 Oct 2004 00:07:59 -0000	1.19
  @@ -122,6 +122,7 @@
        * @param str  the string to convert, may be null
        * @return the int represented by the string, or <code>zero</code> if
        *  conversion fails
  +     * @since 2.1
        */
       public static int toInt(String str) {
           return toInt(str, 0);
  @@ -164,6 +165,7 @@
        * @param str  the string to convert, may be null
        * @param defaultValue  the default value
        * @return the int represented by the string, or the default if conversion fails
  +     * @since 2.1
        */
       public static int toInt(String str, int defaultValue) {
           if(str == null) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message