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/lang/src/java/org/apache/commons/lang StringUtils.java
Date Mon, 03 Nov 2003 03:49:00 GMT
ggregory    2003/11/02 19:49:00

  Modified:    lang/src/java/org/apache/commons/lang StringUtils.java
  Log:
  javadoc.
  
  Revision  Changes    Path
  1.116     +13 -13    jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java
  
  Index: StringUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java,v
  retrieving revision 1.115
  retrieving revision 1.116
  diff -u -r1.115 -r1.116
  --- StringUtils.java	1 Nov 2003 19:20:35 -0000	1.115
  +++ StringUtils.java	3 Nov 2003 03:48:59 -0000	1.116
  @@ -2485,14 +2485,14 @@
        *  <code>null</code> if null String input
        * @since 2.1
        */
  -    public static String removeStart(String str, String remove) {
  -        if (str == null || str.length() == 0 || remove == null || remove.length() == 0)
{
  -            return str;
  +    public static String removeStart(String string, String remove) {
  +        if (string == null || string.length() == 0 || remove == null || remove.length()
== 0) {
  +            return string;
           }
  -        if (str.startsWith(remove)){
  -            return str.substring(remove.length());
  +        if (string.startsWith(remove)){
  +            return string.substring(remove.length());
           }
  -        return str;
  +        return string;
       }
   
       /**
  @@ -2519,14 +2519,14 @@
        *  <code>null</code> if null String input
        * @since 2.1
        */
  -    public static String removeEnd(String str, String remove) {
  -        if (str == null || str.length() == 0 || remove == null || remove.length() == 0)
{
  -            return str;
  +    public static String removeEnd(String string, String remove) {
  +        if (string == null || string.length() == 0 || remove == null || remove.length()
== 0) {
  +            return string;
           }
  -        if (str.endsWith(remove)) {
  -            return str.substring(0, str.length() - remove.length());
  +        if (string.endsWith(remove)) {
  +            return string.substring(0, string.length() - remove.length());
           }
  -        return str;
  +        return string;
       }
   
       // Replacing
  
  
  

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