Repository: commons-text
Updated Branches:
  refs/heads/master 1b8c7eb2e -> f126890c9


Make whitespace use around generic tokens consistent and add a checkstyle rule 
to enforce it.


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

Branch: refs/heads/master
Commit: f126890c9c60582d21bf66f6ac4a06aff27b4981
Parents: 1b8c7eb
Author: Pascal Schumacher <[email protected]>
Authored: Mon Nov 19 22:10:54 2018 +0100
Committer: Pascal Schumacher <[email protected]>
Committed: Mon Nov 19 22:11:14 2018 +0100

----------------------------------------------------------------------
 checkstyle.xml                                               | 1 +
 src/main/java/org/apache/commons/text/AlphabetConverter.java | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/f126890c/checkstyle.xml
----------------------------------------------------------------------
diff --git a/checkstyle.xml b/checkstyle.xml
index 2d65b6c..de7dad0 100644
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -156,6 +156,7 @@
         <module name="TypecastParenPad"/>
         <module name="WhitespaceAfter"/>
         <module name="WhitespaceAround"/>
+        <module name="GenericWhitespace"/>
 
 
         <!-- Modifier Checks                                    -->

http://git-wip-us.apache.org/repos/asf/commons-text/blob/f126890c/src/main/java/org/apache/commons/text/AlphabetConverter.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/AlphabetConverter.java 
b/src/main/java/org/apache/commons/text/AlphabetConverter.java
index 53a6820..e122739 100644
--- a/src/main/java/org/apache/commons/text/AlphabetConverter.java
+++ b/src/main/java/org/apache/commons/text/AlphabetConverter.java
@@ -407,9 +407,9 @@ public final class AlphabetConverter {
             final Integer[] original,
             final Integer[] encoding,
             final Integer[] doNotEncode) {
-        final Set<Integer> originalCopy = new LinkedHashSet<>(Arrays.<Integer> 
asList(original));
-        final Set<Integer> encodingCopy = new LinkedHashSet<>(Arrays.<Integer> 
asList(encoding));
-        final Set<Integer> doNotEncodeCopy = new 
LinkedHashSet<>(Arrays.<Integer> asList(doNotEncode));
+        final Set<Integer> originalCopy = new 
LinkedHashSet<>(Arrays.asList(original));
+        final Set<Integer> encodingCopy = new 
LinkedHashSet<>(Arrays.asList(encoding));
+        final Set<Integer> doNotEncodeCopy = new 
LinkedHashSet<>(Arrays.asList(doNotEncode));
 
         final Map<Integer, String> originalToEncoded = new LinkedHashMap<>();
         final Map<String, String> encodedToOriginal = new LinkedHashMap<>();

Reply via email to