Skip to content

Commit cb74b50

Browse files
committed
Qualify inst var access with this.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/codec/trunk@130280 13f79535-47bb-0310-9956-ffa450edef68
1 parent 13781f3 commit cb74b50

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

src/java/org/apache/commons/codec/language/DoubleMetaphone.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
*
7474
* @author <a href="mailto:ben@walstrum.com">Benjamin Walstrum</a>
7575
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
76-
* @version $Id: DoubleMetaphone.java,v 1.17 2004/01/02 07:01:47 ggregory Exp $
76+
* @version $Id: DoubleMetaphone.java,v 1.18 2004/01/08 19:22:22 ggregory Exp $
7777
*/
7878
public class DoubleMetaphone implements StringEncoder {
7979

@@ -1100,14 +1100,14 @@ public void append(char primary, char alternate) {
11001100
}
11011101

11021102
public void appendPrimary(char value) {
1103-
if (primary.length() < maxLength) {
1104-
primary.append(value);
1103+
if (this.primary.length() < this.maxLength) {
1104+
this.primary.append(value);
11051105
}
11061106
}
11071107

11081108
public void appendAlternate(char value) {
1109-
if (alternate.length() < maxLength) {
1110-
alternate.append(value);
1109+
if (this.alternate.length() < this.maxLength) {
1110+
this.alternate.append(value);
11111111
}
11121112
}
11131113

@@ -1122,20 +1122,20 @@ public void append(String primary, String alternate) {
11221122
}
11231123

11241124
public void appendPrimary(String value) {
1125-
int addChars = maxLength - primary.length();
1125+
int addChars = this.maxLength - this.primary.length();
11261126
if (value.length() <= addChars) {
1127-
primary.append(value);
1127+
this.primary.append(value);
11281128
} else {
1129-
primary.append(value.substring(0, addChars));
1129+
this.primary.append(value.substring(0, addChars));
11301130
}
11311131
}
11321132

11331133
public void appendAlternate(String value) {
1134-
int addChars = maxLength - alternate.length();
1134+
int addChars = this.maxLength - this.alternate.length();
11351135
if (value.length() <= addChars) {
1136-
alternate.append(value);
1136+
this.alternate.append(value);
11371137
} else {
1138-
alternate.append(value.substring(0, addChars));
1138+
this.alternate.append(value.substring(0, addChars));
11391139
}
11401140
}
11411141

@@ -1148,8 +1148,8 @@ public String getAlternate() {
11481148
}
11491149

11501150
public boolean isComplete() {
1151-
return primary.length() >= maxLength &&
1152-
alternate.length() >= maxLength;
1151+
return this.primary.length() >= this.maxLength &&
1152+
this.alternate.length() >= this.maxLength;
11531153
}
11541154
}
11551155
}

0 commit comments

Comments
 (0)