You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/11/17 21:57:03 UTC

svn commit: r1542815 - /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/bm/Rule.java

Author: tn
Date: Sun Nov 17 20:57:03 2013
New Revision: 1542815

URL: http://svn.apache.org/r1542815
Log:
[CODEC-174] Add removed method again and make it deprecated.

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=1542815&r1=1542814&r2=1542815&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 17 20:57:03 2013
@@ -119,7 +119,7 @@ public class Rule {
             this.phonemeText.append(phonemeRight.phonemeText);
         }
 
-        public Phoneme  append(final CharSequence str) {
+        public Phoneme append(final CharSequence str) {
             this.phonemeText.append(str);
             return this;
         }
@@ -136,6 +136,15 @@ public class Rule {
         public CharSequence getPhonemeText() {
             return this.phonemeText;
         }
+
+        /**
+         * @deprecated since 1.9
+         */
+        @Deprecated
+        public Phoneme join(final Phoneme right) {
+            return new Phoneme(this.phonemeText.toString() + right.phonemeText.toString(),
+                               this.languages.restrictTo(right.languages));
+        }
     }
 
     public interface PhonemeExpr {