commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/codec/src/java/org/apache/commons/codec StringEncoderComparator.java
Date Wed, 29 Oct 2003 02:30:41 GMT
ggregory    2003/10/28 18:30:41

  Modified:    codec/src/java/org/apache/commons/codec
                        StringEncoderComparator.java
  Log:
  Minor Javadoc.
  
  Revision  Changes    Path
  1.8       +8 -3      jakarta-commons/codec/src/java/org/apache/commons/codec/StringEncoderComparator.java
  
  Index: StringEncoderComparator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/java/org/apache/commons/codec/StringEncoderComparator.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StringEncoderComparator.java	12 Oct 2003 01:34:06 -0000	1.7
  +++ StringEncoderComparator.java	29 Oct 2003 02:30:41 -0000	1.8
  @@ -83,6 +83,7 @@
        * Constructs a new instance.
        */
       public StringEncoderComparator() {
  +        // no init.
       }
   
       /**
  @@ -93,10 +94,14 @@
       }
   
       /**
  -     * Compares 2 strings based not on the strings 
  +     * Compares two strings based not on the strings 
        * themselves, but on an encoding of the two 
        * strings using the StringEncoder this Comparator
        * was created with.
  +     * 
  +     * If an {@link EncoderException} is encountered, return <code>0</code>.
  +     * 
  +     * @see Comparable
        */
       public int compare(Object o1, Object o2) {
   
  @@ -110,7 +115,7 @@
           catch (EncoderException ee) {
               compareCode = 0;
           }
  -        return (compareCode);
  +        return compareCode;
       }
   
   }
  
  
  

---------------------------------------------------------------------
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