commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject commons-crypto git commit: Tidy
Date Tue, 28 Jun 2016 01:21:57 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master 8feb4adad -> b2953218f


Tidy

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

Branch: refs/heads/master
Commit: b2953218fa273b2b58193482c30ebdb3b67736bd
Parents: 8feb4ad
Author: Sebb <sebb@apache.org>
Authored: Tue Jun 28 02:21:53 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Tue Jun 28 02:21:53 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/crypto/cipher/TestData.java     | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/b2953218/src/test/java/org/apache/commons/crypto/cipher/TestData.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/crypto/cipher/TestData.java b/src/test/java/org/apache/commons/crypto/cipher/TestData.java
index a507325..3c73ea8 100644
--- a/src/test/java/org/apache/commons/crypto/cipher/TestData.java
+++ b/src/test/java/org/apache/commons/crypto/cipher/TestData.java
@@ -22,11 +22,11 @@ import java.util.Map;
 
 public class TestData {
 
-    private static String[] CBCNoPaddingTests = {
+    private static final String[] CBCNoPaddingTests = {
     /*
      * key_len,key,iv,plainText,cipherText
      */
-    "128", "2b7e151628aed2a6abf7158809cf4f3c",
+            "128", "2b7e151628aed2a6abf7158809cf4f3c",
             "000102030405060708090a0b0c0d0e0f",
             "6bc1bee22e409f96e93d7e117393172a",
             "7649abac8119b246cee98e9b12e9197d",
@@ -136,12 +136,11 @@ public class TestData {
             "f0f1f2f3f4f5f6f7f8f9fafbfcfdff01",
             "30c81c46a35ce411e5fbc1191a0a52", "2b0930daa23de94ce87017ba2d8498" };
 
-    private static Map<String, String[]> testData = new HashMap<>();
+    private static final Map<String, String[]> testData = new HashMap<>();
 
     static {
         testData.put("AES/CBC/NoPadding", CBCNoPaddingTests);
-        testData.put("AES/CBC/PKCS5Padding",
-                CBCPKCS5PaddingTests);
+        testData.put("AES/CBC/PKCS5Padding", CBCPKCS5PaddingTests);
         testData.put("AES/CTR/NoPadding", cipherCTRTests);
     }
 


Mime
View raw message