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-sandbox/lang/src/java/org/apache/commons/lang CharSet.java
Date Fri, 05 Jul 2002 06:51:05 GMT
bayard      2002/07/04 23:51:05

  Modified:    lang/src/java/org/apache/commons/lang CharSet.java
  Log:
  Moved the overriding squeeze method.
  
  Revision  Changes    Path
  1.2       +7 -7      jakarta-commons-sandbox/lang/src/java/org/apache/commons/lang/CharSet.java
  
  Index: CharSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/lang/src/java/org/apache/commons/lang/CharSet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CharSet.java	5 Jul 2002 06:33:05 -0000	1.1
  +++ CharSet.java	5 Jul 2002 06:51:05 -0000	1.2
  @@ -67,6 +67,12 @@
    */
   public class CharSet {
   
  +    public static String squeeze(String str, String set) {
  +        String[] strs = new String[1];
  +        strs[0] = set;
  +        return squeeze(str, strs);
  +    }
  +
       /**
        * Squeezes any repititions of a character that is mentioned in the 
        * supplied set. An example is:
  @@ -156,12 +162,6 @@
               }
           }
           return buffer.toString();
  -    }
  -
  -    public static String squeeze(String str, String set) {
  -        String[] strs = new String[1];
  -        strs[0] = set;
  -        return squeeze(str, strs);
       }
   
       // used to be a com.generationjava.collections.typed.TypedList
  
  
  

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


Mime
View raw message