This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git


The following commit(s) were added to refs/heads/master by this push:
     new a341633  AlphabetConverter#decode: Use int instead of Integer for 
local variable that can never be null.
a341633 is described below

commit a341633ac3cac501acef5a944c376285354b2488
Author: Pascal Schumacher <pascalschumac...@gmx.net>
AuthorDate: Sun Dec 22 12:55:07 2019 +0100

    AlphabetConverter#decode: Use int instead of Integer for local variable 
that can never be null.
---
 src/main/java/org/apache/commons/text/AlphabetConverter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/text/AlphabetConverter.java 
b/src/main/java/org/apache/commons/text/AlphabetConverter.java
index b210092..6dd1927 100644
--- a/src/main/java/org/apache/commons/text/AlphabetConverter.java
+++ b/src/main/java/org/apache/commons/text/AlphabetConverter.java
@@ -161,7 +161,7 @@ public final class AlphabetConverter {
         final StringBuilder result = new StringBuilder();
 
         for (int j = 0; j < encoded.length();) {
-            final Integer i = encoded.codePointAt(j);
+            final int i = encoded.codePointAt(j);
             final String s = codePointToString(i);
 
             if (s.equals(originalToEncoded.get(i))) {

Reply via email to