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/language DoubleMetaphone.java
Date Thu, 08 Jan 2004 19:22:22 GMT
ggregory    2004/01/08 11:22:22

  Modified:    codec/src/java/org/apache/commons/codec/language
                        DoubleMetaphone.java
  Log:
  Qualify inst var access with this.
  
  Revision  Changes    Path
  1.18      +13 -13    jakarta-commons/codec/src/java/org/apache/commons/codec/language/DoubleMetaphone.java
  
  Index: DoubleMetaphone.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/java/org/apache/commons/codec/language/DoubleMetaphone.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- DoubleMetaphone.java	2 Jan 2004 07:01:47 -0000	1.17
  +++ DoubleMetaphone.java	8 Jan 2004 19:22:22 -0000	1.18
  @@ -1100,14 +1100,14 @@
           }
   
           public void appendPrimary(char value) {
  -            if (primary.length() < maxLength) {
  -                primary.append(value);
  +            if (this.primary.length() < this.maxLength) {
  +                this.primary.append(value);
               }
           }
   
           public void appendAlternate(char value) {
  -            if (alternate.length() < maxLength) {
  -                alternate.append(value);
  +            if (this.alternate.length() < this.maxLength) {
  +                this.alternate.append(value);
               }
           }
   
  @@ -1122,20 +1122,20 @@
           }
   
           public void appendPrimary(String value) {
  -            int addChars = maxLength - primary.length();
  +            int addChars = this.maxLength - this.primary.length();
               if (value.length() <= addChars) {
  -                primary.append(value);
  +                this.primary.append(value);
               } else {
  -                primary.append(value.substring(0, addChars));
  +                this.primary.append(value.substring(0, addChars));
               }
           }
   
           public void appendAlternate(String value) {
  -            int addChars = maxLength - alternate.length();
  +            int addChars = this.maxLength - this.alternate.length();
               if (value.length() <= addChars) {
  -                alternate.append(value);
  +                this.alternate.append(value);
               } else {
  -                alternate.append(value.substring(0, addChars));
  +                this.alternate.append(value.substring(0, addChars));
               }
           }
   
  @@ -1148,8 +1148,8 @@
           }
   
           public boolean isComplete() {
  -            return primary.length() >= maxLength && 
  -                alternate.length() >= maxLength;
  +            return this.primary.length() >= this.maxLength && 
  +                this.alternate.length() >= this.maxLength;
           }
       }
   }
  
  
  

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