commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1540434 - /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/bm/Rule.java
Date Sun, 10 Nov 2013 02:17:23 GMT
Author: ggregory
Date: Sun Nov 10 02:17:23 2013
New Revision: 1540434

URL: http://svn.apache.org/r1540434
Log:
[CODEC-174] Improve performance of Beider Morse encoder. Implement Sebb's suggestion in order
to keep binary compatibility for a method.

Modified:
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/bm/Rule.java

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/bm/Rule.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/bm/Rule.java?rev=1540434&r1=1540433&r2=1540434&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/bm/Rule.java
(original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/bm/Rule.java
Sun Nov 10 02:17:23 2013
@@ -115,8 +115,9 @@ public class Rule {
             this.languages = phonemeLeft.languages;
         }
 
-        public void append(final CharSequence str) {
+        public Phoneme  append(final CharSequence str) {
             this.phonemeText.append(str);
+            return this;
         }
 
         public Languages.LanguageSet getLanguages() {



Mime
View raw message