Skip to content

Commit 0be65c0

Browse files
committed
Change isColognEqual to isEncodeEqual. We can add isEncodeEqual in a superclass later.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1073525 13f79535-47bb-0310-9956-ffa450edef68
1 parent 11c34fc commit 0be65c0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public String encode(String text) {
390390
return colognePhonetic(text);
391391
}
392392

393-
public boolean isCologneEqual(String text1, String text2) {
393+
public boolean isEncodeEqual(String text1, String text2) {
394394
return colognePhonetic(text1).equals(colognePhonetic(text2));
395395
}
396396

src/test/org/apache/commons/codec/language/ColognePhoneticTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void testHyphen() {
132132

133133
}
134134

135-
public void testIsCologneEquals() {
135+
public void testIsEncodeEquals() {
136136
String[][] data = {
137137
{"Meyer", "Müller"},
138138
{"Meyer", "Mayr"},
@@ -143,7 +143,7 @@ public void testIsCologneEquals() {
143143
{"ganz", "Gänse"},
144144
{"Miyagi", "Miyako"}};
145145
for (int i = 0; i < data.length; i++) {
146-
this.colognePhonetic.isCologneEqual(data[i][1], data[i][0]);
146+
this.colognePhonetic.isEncodeEqual(data[i][1], data[i][0]);
147147
}
148148
}
149149

0 commit comments

Comments
 (0)