commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1073525 - in /commons/proper/codec/trunk/src: java/org/apache/commons/codec/language/ColognePhonetic.java test/org/apache/commons/codec/language/ColognePhoneticTest.java
Date Tue, 22 Feb 2011 21:53:27 GMT
Author: ggregory
Date: Tue Feb 22 21:53:27 2011
New Revision: 1073525

URL: http://svn.apache.org/viewvc?rev=1073525&view=rev
Log:
Change isColognEqual to isEncodeEqual. We can add isEncodeEqual in a superclass later.

Modified:
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java
    commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/ColognePhoneticTest.java

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java?rev=1073525&r1=1073524&r2=1073525&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java
(original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java
Tue Feb 22 21:53:27 2011
@@ -390,7 +390,7 @@ public class ColognePhonetic implements 
         return colognePhonetic(text);
     }
 
-    public boolean isCologneEqual(String text1, String text2) {
+    public boolean isEncodeEqual(String text1, String text2) {
         return colognePhonetic(text1).equals(colognePhonetic(text2));
     }
 

Modified: commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/ColognePhoneticTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/ColognePhoneticTest.java?rev=1073525&r1=1073524&r2=1073525&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/ColognePhoneticTest.java
(original)
+++ commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/ColognePhoneticTest.java
Tue Feb 22 21:53:27 2011
@@ -132,7 +132,7 @@ public class ColognePhoneticTest extends
 
     }
 
-    public void testIsCologneEquals() {
+    public void testIsEncodeEquals() {
         String[][] data = {
             {"Meyer", "Müller"},
             {"Meyer", "Mayr"},
@@ -143,7 +143,7 @@ public class ColognePhoneticTest extends
             {"ganz", "Gänse"},
             {"Miyagi", "Miyako"}};
         for (int i = 0; i < data.length; i++) {
-            this.colognePhonetic.isCologneEqual(data[i][1], data[i][0]);
+            this.colognePhonetic.isEncodeEqual(data[i][1], data[i][0]);
         }
     }
 



Mime
View raw message