[jboss-cvs] javassist/src/main/javassist/bytecode/annotation ...

Shigeru Chiba chiba at is.titech.ac.jp
Fri Feb 2 05:52:45 EST 2007


  User: chiba   
  Date: 07/02/02 05:52:45

  Modified:    src/main/javassist/bytecode/annotation   AnnotationImpl.java
                        Annotation.java
  Log:
  updated javadoc comments.
  
  Revision  Changes    Path
  1.13      +5 -2      javassist/src/main/javassist/bytecode/annotation/AnnotationImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AnnotationImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/bytecode/annotation/AnnotationImpl.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- AnnotationImpl.java	31 Jan 2007 16:17:42 -0000	1.12
  +++ AnnotationImpl.java	2 Feb 2007 10:52:45 -0000	1.13
  @@ -177,6 +177,9 @@
                                      + name + "()");
       }
       
  +    /**
  +     * Returns a hash code value for this object.
  +     */
       public int hashCode() {
           if (cachedHashCode == Integer.MIN_VALUE) {
               int hashCode = 0;
  @@ -221,7 +224,7 @@
       }
       
       /**
  -     * Check that another annotation equals ourselves
  +     * Check that another annotation equals ourselves.
        * 
        * @param obj the other annotation
        * @return the true when equals false otherwise
  
  
  
  1.8       +8 -1      javassist/src/main/javassist/bytecode/annotation/Annotation.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Annotation.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/bytecode/annotation/Annotation.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- Annotation.java	31 Jan 2007 16:17:42 -0000	1.7
  +++ Annotation.java	2 Feb 2007 10:52:45 -0000	1.8
  @@ -208,6 +208,9 @@
           members.put(name, pair);
       }
   
  +    /**
  +     * Returns a string representation of the annotation.
  +     */
       public String toString() {
           StringBuffer buf = new StringBuffer("@");
           buf.append(getTypeName());
  @@ -314,6 +317,10 @@
           }
       }
       
  +    /**
  +     * Returns true if the given object represents the same annotation
  +     * as this object.  The equality test checks the member values.
  +     */
       public boolean equals(Object obj) {
           if (obj == this)
               return true;
  
  
  



More information about the jboss-cvs-commits mailing list