TEXT-69: Removing unneeded parentheses

Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/867c38f1
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/867c38f1
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/867c38f1

Branch: refs/heads/master
Commit: 867c38f10665e78f5b2acfbb9d0dc8bfc1bd6fe6
Parents: 0ccf70e
Author: Rob Tompkins <chtom...@apache.org>
Authored: Wed Feb 22 13:21:28 2017 -0500
Committer: Rob Tompkins <chtom...@apache.org>
Committed: Wed Feb 22 13:21:28 2017 -0500

----------------------------------------------------------------------
 .../java/org/apache/commons/text/translate/LookupTranslator.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/867c38f1/src/main/java/org/apache/commons/text/translate/LookupTranslator.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/text/translate/LookupTranslator.java 
b/src/main/java/org/apache/commons/text/translate/LookupTranslator.java
index 51cafd9..532c877 100644
--- a/src/main/java/org/apache/commons/text/translate/LookupTranslator.java
+++ b/src/main/java/org/apache/commons/text/translate/LookupTranslator.java
@@ -64,7 +64,7 @@ public class LookupTranslator extends CharSequenceTranslator {
         while (it.hasNext()) {
             Map.Entry<CharSequence, CharSequence> pair = it.next();
             this.lookupMap.put(pair.getKey().toString(), 
pair.getValue().toString());
-            this.prefixSet.add((pair.getKey()).charAt(0));
+            this.prefixSet.add(pair.getKey().charAt(0));
             final int sz = pair.getKey().length();
             if (sz < _shortest) {
                 _shortest = sz;

Reply via email to