commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang CharRange.java
Date Sun, 02 Feb 2003 09:26:52 GMT
bayard      2003/02/02 01:26:52

  Modified:    lang/src/java/org/apache/commons/lang CharRange.java
  Log:
  Removed a few checkstyle complaints.
  
  Revision  Changes    Path
  1.4       +6 -5      jakarta-commons/lang/src/java/org/apache/commons/lang/CharRange.java
  
  Index: CharRange.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/CharRange.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CharRange.java	23 Dec 2002 00:32:24 -0000	1.3
  +++ CharRange.java	2 Feb 2003 09:26:52 -0000	1.4
  @@ -156,11 +156,12 @@
        * <p>Is the passed in character <code>ch</code> inside
        * this range.</p>
        *
  +     * @param ch character to test for
        * @return boolean <code>true</code> is in range
        */
       public boolean inRange(char ch) {
  -        if(isRange()) {
  -            return ((ch >= start) && (ch <= close) );
  +        if( isRange() ) {
  +            return ((ch >= start) && (ch <= close));
           } else {
               return start == ch;
           }
  @@ -194,11 +195,11 @@
        */
       public String toString() {
           String str = "";
  -        if(isNegated()) {
  +        if( isNegated() ) {
               str += "^";
           }
           str += start;
  -        if(isRange()) {
  +        if( isRange() ) {
               str += "-";
               str += close;
           }
  
  
  

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