commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-crypto git commit: Redundant specification of type arguments.
Date Tue, 21 Jun 2016 23:21:45 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master a61d69675 -> 81c680626


Redundant specification of type arguments.

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

Branch: refs/heads/master
Commit: 81c6806261b87ea74543d1a8569dc519e915ea64
Parents: a61d696
Author: ggregory <ggregory@apache.org>
Authored: Tue Jun 21 16:21:43 2016 -0700
Committer: ggregory <ggregory@apache.org>
Committed: Tue Jun 21 16:21:43 2016 -0700

----------------------------------------------------------------------
 .../commons/crypto/stream/PositionedCryptoInputStream.java       | 4 ++--
 src/main/java/org/apache/commons/crypto/utils/OSInfo.java        | 2 +-
 .../java/org/apache/commons/crypto/utils/ReflectionUtils.java    | 2 +-
 src/main/java/org/apache/commons/crypto/utils/Utils.java         | 2 +-
 src/test/java/org/apache/commons/crypto/cipher/TestData.java     | 2 +-
 .../org/apache/commons/crypto/random/AbstractRandomTest.java     | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/81c68062/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
b/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
index 55f47c3..6ea3805 100644
--- a/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
+++ b/src/main/java/org/apache/commons/crypto/stream/PositionedCryptoInputStream.java
@@ -48,12 +48,12 @@ public class PositionedCryptoInputStream extends CTRCryptoInputStream
{
     /**
      * DirectBuffer pool
      */
-    private final Queue<ByteBuffer> bufferPool = new ConcurrentLinkedQueue<ByteBuffer>();
+    private final Queue<ByteBuffer> bufferPool = new ConcurrentLinkedQueue<>();
 
     /**
      * CryptoCipher pool
      */
-    private final Queue<CipherState> cipherPool = new ConcurrentLinkedQueue<CipherState>();
+    private final Queue<CipherState> cipherPool = new ConcurrentLinkedQueue<>();
 
     /**
      * properties for constructing a CryptoCipher

http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/81c68062/src/main/java/org/apache/commons/crypto/utils/OSInfo.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/OSInfo.java b/src/main/java/org/apache/commons/crypto/utils/OSInfo.java
index f809b99..4cd4ef4 100644
--- a/src/main/java/org/apache/commons/crypto/utils/OSInfo.java
+++ b/src/main/java/org/apache/commons/crypto/utils/OSInfo.java
@@ -25,7 +25,7 @@ import java.util.Locale;
  * Provides OS name and architecture name.
  */
 public class OSInfo {
-    private final static HashMap<String, String> archMapping = new HashMap<String,
String>();
+    private final static HashMap<String, String> archMapping = new HashMap<>();
 
     /**
      * The constant string represents for X86 architecture, the value is:

http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/81c68062/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java b/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
index 014e7b1..0299024 100644
--- a/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
+++ b/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
@@ -30,7 +30,7 @@ import org.apache.commons.crypto.cipher.CryptoCipher;
  */
 public final class ReflectionUtils {
 
-    private static final Map<ClassLoader, Map<String, WeakReference<Class<?>>>>
CACHE_CLASSES = new WeakHashMap<ClassLoader, Map<String, WeakReference<Class<?>>>>();
+    private static final Map<ClassLoader, Map<String, WeakReference<Class<?>>>>
CACHE_CLASSES = new WeakHashMap<>();
 
     private final static ClassLoader classLoader;
 

http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/81c68062/src/main/java/org/apache/commons/crypto/utils/Utils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/Utils.java b/src/main/java/org/apache/commons/crypto/utils/Utils.java
index 38ea8e8..f1c43ad 100644
--- a/src/main/java/org/apache/commons/crypto/utils/Utils.java
+++ b/src/main/java/org/apache/commons/crypto/utils/Utils.java
@@ -359,7 +359,7 @@ public final class Utils {
      */
     public static List<String> splitClassNames(String clazzNames,
             String separator) {
-        List<String> res = new ArrayList<String>();
+        List<String> res = new ArrayList<>();
         if (clazzNames == null || clazzNames.isEmpty()) {
             return res;
         }

http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/81c68062/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 d67414e..397ecf1 100644
--- a/src/test/java/org/apache/commons/crypto/cipher/TestData.java
+++ b/src/test/java/org/apache/commons/crypto/cipher/TestData.java
@@ -136,7 +136,7 @@ public class TestData {
             "f0f1f2f3f4f5f6f7f8f9fafbfcfdff01",
             "30c81c46a35ce411e5fbc1191a0a52", "2b0930daa23de94ce87017ba2d8498" };
 
-    private static Map<CipherTransformation, String[]> testData = new HashMap<CipherTransformation,
String[]>();
+    private static Map<CipherTransformation, String[]> testData = new HashMap<>();
 
     static {
         testData.put(CipherTransformation.AES_CBC_NOPADDING, CBCNoPaddingTests);

http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/81c68062/src/test/java/org/apache/commons/crypto/random/AbstractRandomTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/crypto/random/AbstractRandomTest.java b/src/test/java/org/apache/commons/crypto/random/AbstractRandomTest.java
index 2a513ce..8193451 100644
--- a/src/test/java/org/apache/commons/crypto/random/AbstractRandomTest.java
+++ b/src/test/java/org/apache/commons/crypto/random/AbstractRandomTest.java
@@ -48,7 +48,7 @@ public abstract class AbstractRandomTest {
     public void testRandomBytesMultiThreaded() throws Exception {
         final int threadCount = 100;
         final CryptoRandom random = getCryptoRandom();
-        final List<Thread> threads = new ArrayList<Thread>(threadCount);
+        final List<Thread> threads = new ArrayList<>(threadCount);
 
         for(int i=0; i< threadCount; i++) {
             Thread t = new Thread(new Runnable() {


Mime
View raw message