commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1151539 - /commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Lang.java
Date Wed, 27 Jul 2011 17:19:33 GMT
Author: ggregory
Date: Wed Jul 27 17:19:33 2011
New Revision: 1151539

URL: http://svn.apache.org/viewvc?rev=1151539&view=rev
Log:
Do not overwrite input argument.

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

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Lang.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Lang.java?rev=1151539&r1=1151538&r2=1151539&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Lang.java (original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/bm/Lang.java Wed
Jul 27 17:19:33 2011
@@ -213,8 +213,8 @@ public class Lang {
      *            the word
      * @return a Set of Strings of language names that are potential matches for the word
      */
-    public Set<String> guessLanguages(String text) {
-        text = text.toLowerCase(); // todo: locale?
+    public Set<String> guessLanguages(String input) {
+        String text = input.toLowerCase(); // todo: locale?
         // System.out.println("Testing text: '" + text + "'");
 
         Set<String> langs = new HashSet<String>(this.languages.getLanguages());



Mime
View raw message