You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2017/02/10 14:18:18 UTC

svn commit: r1782475 [3/3] - in /santuario/xml-security-java/trunk/src: main/java/org/apache/jcp/xml/dsig/internal/dom/ main/java/org/apache/xml/security/ main/java/org/apache/xml/security/algorithms/implementations/ main/java/org/apache/xml/security/c...

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/c14n/Canonicalizer20010315ExclusiveTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/c14n/Canonicalizer20010315ExclusiveTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/c14n/Canonicalizer20010315ExclusiveTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/c14n/Canonicalizer20010315ExclusiveTest.java Fri Feb 10 14:18:16 2017
@@ -210,7 +210,7 @@ public class Canonicalizer20010315Exclus
                         + "</env:Body>";
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        List<String> inclusiveNamespaces = new ArrayList<String>();
+        List<String> inclusiveNamespaces = new ArrayList<>();
         inclusiveNamespaces.add("env");
         inclusiveNamespaces.add("ns0");
         inclusiveNamespaces.add("xsi");
@@ -250,7 +250,7 @@ public class Canonicalizer20010315Exclus
         t.transform(new DOMSource(doc), streamResult);
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        List<String> inclusiveNamespaces = new ArrayList<String>();
+        List<String> inclusiveNamespaces = new ArrayList<>();
         Canonicalizer20010315_ExclWithCommentsTransformer c =
                 new Canonicalizer20010315_ExclWithCommentsTransformer();
         Map<String, Object> transformerProperties = new HashMap<String, Object>();
@@ -302,7 +302,7 @@ public class Canonicalizer20010315Exclus
 
         {
             ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            List<String> inclusiveNamespaces = new ArrayList<String>();
+            List<String> inclusiveNamespaces = new ArrayList<>();
             inclusiveNamespaces.add("#default");
             inclusiveNamespaces.add("xsi");
             Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
@@ -318,7 +318,7 @@ public class Canonicalizer20010315Exclus
         {
             //exactly the same outcome is expected if #default is not set:
             ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            List<String> inclusiveNamespaces = new ArrayList<String>();
+            List<String> inclusiveNamespaces = new ArrayList<>();
             inclusiveNamespaces.add("xsi");
             Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
             Map<String, Object> transformerProperties = new HashMap<String, Object>();
@@ -378,7 +378,7 @@ public class Canonicalizer20010315Exclus
 
         {
             ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            List<String> inclusiveNamespaces = new ArrayList<String>();
+            List<String> inclusiveNamespaces = new ArrayList<>();
             inclusiveNamespaces.add("#default");
             inclusiveNamespaces.add("xsi");
             Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
@@ -392,7 +392,7 @@ public class Canonicalizer20010315Exclus
         }
         {
             ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            List<String> inclusiveNamespaces = new ArrayList<String>();
+            List<String> inclusiveNamespaces = new ArrayList<>();
             inclusiveNamespaces.add("xsi");
             Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
             Map<String, Object> transformerProperties = new HashMap<String, Object>();
@@ -440,7 +440,7 @@ public class Canonicalizer20010315Exclus
 
         {
             ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            List<String> inclusiveNamespaces = new ArrayList<String>();
+            List<String> inclusiveNamespaces = new ArrayList<>();
             inclusiveNamespaces.add("#default");
             inclusiveNamespaces.add("xsi");
             Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
@@ -455,7 +455,7 @@ public class Canonicalizer20010315Exclus
         {
             //exactly the same outcome is expected if #default is not set:
             ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            List<String> inclusiveNamespaces = new ArrayList<String>();
+            List<String> inclusiveNamespaces = new ArrayList<>();
             inclusiveNamespaces.add("xsi");
             Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
             Map<String, Object> transformerProperties = new HashMap<String, Object>();
@@ -503,7 +503,7 @@ public class Canonicalizer20010315Exclus
 
         {
             ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            List<String> inclusiveNamespaces = new ArrayList<String>();
+            List<String> inclusiveNamespaces = new ArrayList<>();
             inclusiveNamespaces.add("#default");
             inclusiveNamespaces.add("xsi");
             Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
@@ -518,7 +518,7 @@ public class Canonicalizer20010315Exclus
         {
             //exactly the same outcome is expected if #default is not set:
             ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            List<String> inclusiveNamespaces = new ArrayList<String>();
+            List<String> inclusiveNamespaces = new ArrayList<>();
             inclusiveNamespaces.add("xsi");
             Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
             Map<String, Object> transformerProperties = new HashMap<String, Object>();
@@ -564,7 +564,7 @@ public class Canonicalizer20010315Exclus
                         + "</env:Body>";
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        List<String> inclusiveNamespaces = new ArrayList<String>();
+        List<String> inclusiveNamespaces = new ArrayList<>();
         inclusiveNamespaces.add("#default");
         Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
         Map<String, Object> transformerProperties = new HashMap<String, Object>();
@@ -606,7 +606,7 @@ public class Canonicalizer20010315Exclus
                         + "</env:Body>";
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        List<String> inclusiveNamespaces = new ArrayList<String>();
+        List<String> inclusiveNamespaces = new ArrayList<>();
         inclusiveNamespaces.add("#default");
         Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
         Map<String, Object> transformerProperties = new HashMap<String, Object>();
@@ -648,7 +648,7 @@ public class Canonicalizer20010315Exclus
                         + "</env:Body>";
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        List<String> inclusiveNamespaces = new ArrayList<String>();
+        List<String> inclusiveNamespaces = new ArrayList<>();
         inclusiveNamespaces.add("#default");
         Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
         Map<String, Object> transformerProperties = new HashMap<String, Object>();
@@ -690,7 +690,7 @@ public class Canonicalizer20010315Exclus
                         + "</env:Body>";
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        List<String> inclusiveNamespaces = new ArrayList<String>();
+        List<String> inclusiveNamespaces = new ArrayList<>();
         inclusiveNamespaces.add("#default");
         Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
         Map<String, Object> transformerProperties = new HashMap<String, Object>();
@@ -727,7 +727,7 @@ public class Canonicalizer20010315Exclus
                         + "</ns0:Ping>";
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        List<String> inclusiveNamespaces = new ArrayList<String>();
+        List<String> inclusiveNamespaces = new ArrayList<>();
         inclusiveNamespaces.add("#default");
         Canonicalizer20010315_ExclOmitCommentsTransformer c = new Canonicalizer20010315_ExclOmitCommentsTransformer();
         Map<String, Object> transformerProperties = new HashMap<String, Object>();

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/DecryptionTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/DecryptionTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/DecryptionTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/DecryptionTest.java Fri Feb 10 14:18:16 2017
@@ -107,7 +107,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = generateSecretKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", secretKey, null, null, document,
@@ -163,7 +163,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = generateSecretKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", secretKey, null, null, document,
@@ -223,7 +223,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#aes256-cbc", secretKey, null, null, document,
@@ -281,7 +281,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = generateSecretKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         localNames.add("ShippingAddress");
         encryptUsingDOM(
@@ -354,7 +354,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#aes128-cbc", secretKey,
@@ -426,7 +426,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#aes256-cbc", secretKey,
@@ -494,7 +494,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#aes256-cbc", secretKey,
@@ -566,7 +566,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#aes192-cbc", secretKey,
@@ -629,7 +629,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = keyFactory.generateSecret(keySpec);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", secretKey,
@@ -692,7 +692,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = new SecretKeySpec(bits128, "AES");
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#aes128-cbc", secretKey,
@@ -757,7 +757,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = new SecretKeySpec(bits192, "AES");
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#aes192-cbc", secretKey,
@@ -824,7 +824,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = new SecretKeySpec(bits256, "AES");
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#aes256-cbc", secretKey,
@@ -887,7 +887,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = keyFactory.generateSecret(keySpec);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PurchaseOrder");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", secretKey,
@@ -948,7 +948,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = keyFactory.generateSecret(keySpec);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("elem");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", secretKey,
@@ -1016,7 +1016,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = keyFactory.generateSecret(keySpec);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("elem");
         encryptUsingDOM(
             "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", secretKey,
@@ -1286,7 +1286,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = generateSecretKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
                 "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", secretKey, null, null, document,
@@ -1341,7 +1341,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
                 "http://www.w3.org/2001/04/xmlenc#aes256-cbc", secretKey,
@@ -1423,7 +1423,7 @@ public class DecryptionTest extends Asse
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         encryptUsingDOM(
@@ -1485,7 +1485,7 @@ public class DecryptionTest extends Asse
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         KeyInfo encryptedKeyKeyInfo = new KeyInfo(document);
@@ -1557,7 +1557,7 @@ public class DecryptionTest extends Asse
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         KeyInfo encryptedKeyKeyInfo = new KeyInfo(document);
@@ -1629,7 +1629,7 @@ public class DecryptionTest extends Asse
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         KeyInfo encryptedKeyKeyInfo = new KeyInfo(document);
@@ -1709,7 +1709,7 @@ public class DecryptionTest extends Asse
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("rsakey");
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         KeyInfo encryptedKeyKeyInfo = new KeyInfo(document);
@@ -1781,7 +1781,7 @@ public class DecryptionTest extends Asse
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         encryptUsingDOM(
@@ -1833,7 +1833,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = generateSecretKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
                 "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", secretKey, null, null, document,
@@ -1895,7 +1895,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = generateSecretKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         encryptUsingDOM(
                 "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", secretKey, null, null, document,
@@ -1954,7 +1954,7 @@ public class DecryptionTest extends Asse
         SecretKey secretKey = generateSecretKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PurchaseOrder");
         encryptUsingDOM(
                 "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", secretKey, null, null, document,

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/KeyWrapEncryptionVerificationTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/KeyWrapEncryptionVerificationTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/KeyWrapEncryptionVerificationTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/KeyWrapEncryptionVerificationTest.java Fri Feb 10 14:18:16 2017
@@ -129,7 +129,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.AES_128;
@@ -186,7 +186,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.AES_192;
@@ -243,7 +243,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.AES_256;
@@ -298,7 +298,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.TRIPLEDES;
@@ -355,7 +355,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.TRIPLEDES;
@@ -412,7 +412,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.TRIPLEDES;
@@ -469,7 +469,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.TRIPLEDES;
@@ -532,7 +532,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.CAMELLIA_128;
@@ -595,7 +595,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.CAMELLIA_192;
@@ -658,7 +658,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.CAMELLIA_256;
@@ -721,7 +721,7 @@ public class KeyWrapEncryptionVerificati
         EncryptedKey encryptedKey = cipher.encryptKey(document, key);
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String encryptionAlgorithm = XMLCipher.SEED_128;

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/SymmetricEncryptionVerificationTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/SymmetricEncryptionVerificationTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/SymmetricEncryptionVerificationTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/encryption/SymmetricEncryptionVerificationTest.java Fri Feb 10 14:18:16 2017
@@ -117,7 +117,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2001/04/xmlenc#aes128-cbc";
         encryptUsingDOM(
@@ -170,7 +170,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2009/xmlenc11#aes128-gcm";
         encryptUsingDOM(
@@ -223,7 +223,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2001/04/xmlenc#aes192-cbc";
         encryptUsingDOM(
@@ -276,7 +276,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2009/xmlenc11#aes192-gcm";
         encryptUsingDOM(
@@ -329,7 +329,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2001/04/xmlenc#aes256-cbc";
         encryptUsingDOM(
@@ -382,7 +382,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2009/xmlenc11#aes256-gcm";
         encryptUsingDOM(
@@ -434,7 +434,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc";
         encryptUsingDOM(
@@ -490,7 +490,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2007/05/xmldsig-more#seed128-cbc";
         encryptUsingDOM(
@@ -546,7 +546,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2001/04/xmldsig-more#camellia128-cbc";
         encryptUsingDOM(
@@ -602,7 +602,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2001/04/xmldsig-more#camellia192-cbc";
         encryptUsingDOM(
@@ -658,7 +658,7 @@ public class SymmetricEncryptionVerifica
         SecretKey key = keygen.generateKey();
 
         // Encrypt using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         String algorithm = "http://www.w3.org/2001/04/xmldsig-more#camellia256-cbc";
         encryptUsingDOM(

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/PKSignatureVerificationTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/PKSignatureVerificationTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/PKSignatureVerificationTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/PKSignatureVerificationTest.java Fri Feb 10 14:18:16 2017
@@ -107,7 +107,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -148,7 +148,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -189,7 +189,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -230,7 +230,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -274,7 +274,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#rsa-ripemd160";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -318,7 +318,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#sha1-rsa-MGF1";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -362,7 +362,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#sha224-rsa-MGF1";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -406,7 +406,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -450,7 +450,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#sha384-rsa-MGF1";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -494,7 +494,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#sha512-rsa-MGF1";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -535,7 +535,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -576,7 +576,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha224";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -617,7 +617,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -658,7 +658,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -699,7 +699,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -743,7 +743,7 @@ public class PKSignatureVerificationTest
         Document document = builder.parse(sourceDocument);
 
         String signatureAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#ecdsa-ripemd160";
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureDigestVerificationTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureDigestVerificationTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureDigestVerificationTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureDigestVerificationTest.java Fri Feb 10 14:18:16 2017
@@ -111,7 +111,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2000/09/xmldsig#sha1";
@@ -163,7 +163,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#sha224";
@@ -215,7 +215,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2001/04/xmlenc#sha256";
@@ -267,7 +267,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#sha384";
@@ -319,7 +319,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2001/04/xmlenc#sha512";
@@ -374,7 +374,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2001/04/xmlenc#ripemd160";
@@ -429,7 +429,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#whirlpool";
@@ -484,7 +484,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#sha3-224";
@@ -539,7 +539,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#sha3-256";
@@ -594,7 +594,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#sha3-384";
@@ -649,7 +649,7 @@ public class SignatureDigestVerification
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         String digestAlgorithm = "http://www.w3.org/2007/05/xmldsig-more#sha3-512";

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureHMACVerificationTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureHMACVerificationTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureHMACVerificationTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureHMACVerificationTest.java Fri Feb 10 14:18:16 2017
@@ -105,7 +105,7 @@ public class SignatureHMACVerificationTe
         SecretKey key = new SecretKeySpec(hmacKey, signatureAlgorithm);
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -151,7 +151,7 @@ public class SignatureHMACVerificationTe
         SecretKey key = new SecretKeySpec(hmacKey, signatureAlgorithm);
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -197,7 +197,7 @@ public class SignatureHMACVerificationTe
         SecretKey key = new SecretKeySpec(hmacKey, signatureAlgorithm);
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -243,7 +243,7 @@ public class SignatureHMACVerificationTe
         SecretKey key = new SecretKeySpec(hmacKey, signatureAlgorithm);
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -289,7 +289,7 @@ public class SignatureHMACVerificationTe
         SecretKey key = new SecretKeySpec(hmacKey, signatureAlgorithm);
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(
@@ -338,7 +338,7 @@ public class SignatureHMACVerificationTe
         SecretKey key = new SecretKeySpec(hmacKey, signatureAlgorithm);
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         signUsingDOM(

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationReferenceURIResolverTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationReferenceURIResolverTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationReferenceURIResolverTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationReferenceURIResolverTest.java Fri Feb 10 14:18:16 2017
@@ -80,7 +80,7 @@ public class SignatureVerificationRefere
         X509Certificate cert = (X509Certificate) keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         File file = new File(BASEDIR +
                 "/src/test/resources/ie/baltimore/merlin-examples/merlin-xmlenc-five/plaintext.xml").getCanonicalFile();
@@ -92,7 +92,7 @@ public class SignatureVerificationRefere
                 false
         );
 
-        List<ReferenceInfo> referenceInfos = new ArrayList<ReferenceInfo>();
+        List<ReferenceInfo> referenceInfos = new ArrayList<>();
         referenceInfos.add(referenceInfo);
 
         XMLSignature sig = signUsingDOM(
@@ -149,7 +149,7 @@ public class SignatureVerificationRefere
         X509Certificate cert = (X509Certificate) keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         File file = new File(BASEDIR +
@@ -162,7 +162,7 @@ public class SignatureVerificationRefere
                 true
         );
 
-        List<ReferenceInfo> referenceInfos = new ArrayList<ReferenceInfo>();
+        List<ReferenceInfo> referenceInfos = new ArrayList<>();
         referenceInfos.add(referenceInfo);
 
         XMLSignature sig = signUsingDOM(
@@ -231,7 +231,7 @@ public class SignatureVerificationRefere
             X509Certificate cert = (X509Certificate) keyStore.getCertificate("transmitter");
 
             // Sign using DOM
-            List<String> localNames = new ArrayList<String>();
+            List<String> localNames = new ArrayList<>();
             localNames.add("PaymentInfo");
 
             ReferenceInfo referenceInfo = new ReferenceInfo(
@@ -241,7 +241,7 @@ public class SignatureVerificationRefere
                     true
             );
 
-            List<ReferenceInfo> referenceInfos = new ArrayList<ReferenceInfo>();
+            List<ReferenceInfo> referenceInfos = new ArrayList<>();
             referenceInfos.add(referenceInfo);
 
             XMLSignature sig = signUsingDOM(
@@ -310,7 +310,7 @@ public class SignatureVerificationRefere
         elementToSign.setIdAttributeNS(null, "Id", true);
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         ReferenceInfo referenceInfo = new ReferenceInfo(
@@ -320,7 +320,7 @@ public class SignatureVerificationRefere
                 false
         );
 
-        List<ReferenceInfo> referenceInfos = new ArrayList<ReferenceInfo>();
+        List<ReferenceInfo> referenceInfos = new ArrayList<>();
         referenceInfos.add(referenceInfo);
 
         XMLSignature sig = signUsingDOM(
@@ -384,7 +384,7 @@ public class SignatureVerificationRefere
         elementToSign.setIdAttributeNS(null, "Id", true);
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         ReferenceInfo referenceInfo = new ReferenceInfo(
@@ -394,7 +394,7 @@ public class SignatureVerificationRefere
                 false
         );
 
-        List<ReferenceInfo> referenceInfos = new ArrayList<ReferenceInfo>();
+        List<ReferenceInfo> referenceInfos = new ArrayList<>();
         referenceInfos.add(referenceInfo);
 
         XMLSignature sig = signUsingDOM(
@@ -446,7 +446,7 @@ public class SignatureVerificationRefere
         X509Certificate cert = (X509Certificate) keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
 
         ReferenceInfo referenceInfo = new ReferenceInfo(
                 "#xpointer(/)",
@@ -458,7 +458,7 @@ public class SignatureVerificationRefere
                 false
         );
 
-        List<ReferenceInfo> referenceInfos = new ArrayList<ReferenceInfo>();
+        List<ReferenceInfo> referenceInfos = new ArrayList<>();
         referenceInfos.add(referenceInfo);
 
         XMLSignature sig = signUsingDOM(

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationTest.java Fri Feb 10 14:18:16 2017
@@ -103,7 +103,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key
@@ -144,8 +144,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = x509TokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -182,7 +182,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         localNames.add("ShippingAddress");
         XMLSignature sig = signUsingDOM(
@@ -226,9 +226,9 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID2 = signedElementSecurityEventList.get(1).getCorrelationID();
         String x509TokenCorrelationID = x509TokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents1 = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents2 = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents1 = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents2 = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -268,7 +268,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         localNames.add("ShippingAddress");
         XMLSignature sig = signUsingDOM(
@@ -340,11 +340,11 @@ public class SignatureVerificationTest e
             false
         );
 
-        List<ReferenceInfo> referenceInfos = new ArrayList<ReferenceInfo>();
+        List<ReferenceInfo> referenceInfos = new ArrayList<>();
         referenceInfos.add(referenceInfo);
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key, referenceInfos
@@ -390,7 +390,7 @@ public class SignatureVerificationTest e
         SecretKey key = new SecretKeySpec(hmacKey, "http://www.w3.org/2000/09/xmldsig#hmac-sha1");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2000/09/xmldsig#hmac-sha1", document, localNames, key
@@ -437,8 +437,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = keyNameSecurityToken.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -470,7 +470,7 @@ public class SignatureVerificationTest e
         SecretKey key = new SecretKeySpec(hmacKey, "http://www.w3.org/2000/09/xmldsig#hmac-sha1");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2000/09/xmldsig#hmac-sha1", document, localNames, key
@@ -543,7 +543,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("ECDSA");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1", document, localNames, key
@@ -587,8 +587,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = x509TokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -625,7 +625,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key,
@@ -670,8 +670,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = x509TokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -708,7 +708,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key,
@@ -753,8 +753,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = x509TokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -791,7 +791,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", document, localNames, key,
@@ -836,8 +836,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = x509TokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -874,7 +874,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key
@@ -921,8 +921,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = x509TokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -959,7 +959,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key
@@ -1004,8 +1004,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = x509TokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -1050,7 +1050,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("rsakey");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key
@@ -1095,8 +1095,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = x509TokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -1133,7 +1133,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
             "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key
@@ -1175,8 +1175,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = keyValueTokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -1213,7 +1213,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
                 "http://www.w3.org/2000/09/xmldsig#rsa-sha1",
@@ -1249,8 +1249,8 @@ public class SignatureVerificationTest e
         String signedElementCorrelationID = signedElementSecurityEvent.getCorrelationID();
         String x509TokenCorrelationID = x509TokenSecurityEvent.getCorrelationID();
 
-        List<SecurityEvent> signatureSecurityEvents = new ArrayList<SecurityEvent>();
-        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<SecurityEvent>();
+        List<SecurityEvent> signatureSecurityEvents = new ArrayList<>();
+        List<SecurityEvent> signedElementSecurityEvents = new ArrayList<>();
 
         List<SecurityEvent> securityEvents = securityEventListener.getSecurityEvents();
         for (int i = 0; i < securityEvents.size(); i++) {
@@ -1287,7 +1287,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("Item");
         localNames.add("PaymentInfo");
         localNames.add("ShippingAddress");
@@ -1349,7 +1349,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
                 "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key
@@ -1409,7 +1409,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
                 "http://www.w3.org/2001/04/xmldsig-more#rsa-md5", document, localNames, key
@@ -1472,7 +1472,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
                 "http://www.w3.org/2001/04/xmldsig-more#rsa-md5", document, localNames, key
@@ -1532,7 +1532,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
                 "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key
@@ -1603,7 +1603,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
 
         XMLSignature sig = signUsingDOM(
@@ -1654,7 +1654,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
                 "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key
@@ -1712,7 +1712,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
         localNames.add("PaymentInfo");
         XMLSignature sig = signUsingDOM(
                 "http://www.w3.org/2000/09/xmldsig#rsa-sha1", document, localNames, key
@@ -1777,7 +1777,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
 
         ReferenceInfo referenceInfo = new ReferenceInfo(
                 "",
@@ -1789,7 +1789,7 @@ public class SignatureVerificationTest e
                 false
         );
 
-        List<ReferenceInfo> referenceInfos = new ArrayList<ReferenceInfo>();
+        List<ReferenceInfo> referenceInfos = new ArrayList<>();
         referenceInfos.add(referenceInfo);
 
         XMLSignature sig = signUsingDOM(
@@ -1848,7 +1848,7 @@ public class SignatureVerificationTest e
         X509Certificate cert = (X509Certificate)keyStore.getCertificate("transmitter");
 
         // Sign using DOM
-        List<String> localNames = new ArrayList<String>();
+        List<String> localNames = new ArrayList<>();
 
         ReferenceInfo referenceInfo = new ReferenceInfo(
                 "",
@@ -1860,7 +1860,7 @@ public class SignatureVerificationTest e
                 false
         );
 
-        List<ReferenceInfo> referenceInfos = new ArrayList<ReferenceInfo>();
+        List<ReferenceInfo> referenceInfos = new ArrayList<>();
         referenceInfos.add(referenceInfo);
 
         XMLSignature sig = signUsingDOM(

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/TestSecurityEventListener.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/TestSecurityEventListener.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/TestSecurityEventListener.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/signature/TestSecurityEventListener.java Fri Feb 10 14:18:16 2017
@@ -28,7 +28,7 @@ import org.apache.xml.security.stax.secu
 import org.junit.Assert;
 
 public class TestSecurityEventListener implements SecurityEventListener {
-    private List<SecurityEvent> events = new ArrayList<SecurityEvent>();
+    private List<SecurityEvent> events = new ArrayList<>();
 
     @Override
     public void registerSecurityEvent(SecurityEvent securityEvent)
@@ -51,7 +51,7 @@ public class TestSecurityEventListener i
 
     @SuppressWarnings("unchecked")
     public <T> List<T> getSecurityEvents(Event securityEvent) {
-        List<T> foundEvents = new ArrayList<T>();
+        List<T> foundEvents = new ArrayList<>();
         for (SecurityEvent event : events) {
             if (event.getSecurityEventType() == securityEvent) {
                 foundEvents.add((T)event);

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformBase64DecodeTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformBase64DecodeTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformBase64DecodeTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformBase64DecodeTest.java Fri Feb 10 14:18:16 2017
@@ -63,7 +63,7 @@ public class TransformBase64DecodeTest e
     public void testXMLSecEventToXMLSecEventAPI() throws Exception {
         TransformBase64Decode transformBase64Decode = new TransformBase64Decode();
 
-        final List<XMLSecEvent> xmlSecEvents = new ArrayList<XMLSecEvent>();
+        final List<XMLSecEvent> xmlSecEvents = new ArrayList<>();
 
         Transformer transformer = new Transformer() {
             @Override
@@ -239,7 +239,7 @@ public class TransformBase64DecodeTest e
     @Test
     public void testInputStreamToXMLSecEventAPI() throws Exception {
         TransformBase64Decode transformBase64Decode = new TransformBase64Decode();
-        final List<XMLSecEvent> xmlSecEvents = new ArrayList<XMLSecEvent>();
+        final List<XMLSecEvent> xmlSecEvents = new ArrayList<>();
 
         Transformer transformer = new Transformer() {
             @Override

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformEnvelopedSignatureTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformEnvelopedSignatureTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformEnvelopedSignatureTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformEnvelopedSignatureTest.java Fri Feb 10 14:18:16 2017
@@ -62,7 +62,7 @@ public class TransformEnvelopedSignature
     public void testXMLSecEventToXMLSecEventAPI() throws Exception {
         TransformEnvelopedSignature transformEnvelopedSignature = new TransformEnvelopedSignature();
 
-        final List<XMLSecEvent> xmlSecEvents = new ArrayList<XMLSecEvent>();
+        final List<XMLSecEvent> xmlSecEvents = new ArrayList<>();
 
         Transformer transformer = new Transformer() {
             @Override

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformIdentityTest.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformIdentityTest.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformIdentityTest.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/transformer/TransformIdentityTest.java Fri Feb 10 14:18:16 2017
@@ -65,7 +65,7 @@ public class TransformIdentityTest exten
     public void testXMLSecEventToXMLSecEventAPI() throws Exception {
         TransformIdentity transformIdentity = new TransformIdentity();
 
-        final List<XMLSecEvent> xmlSecEvents = new ArrayList<XMLSecEvent>();
+        final List<XMLSecEvent> xmlSecEvents = new ArrayList<>();
 
         Transformer transformer = new Transformer() {
             @Override
@@ -241,7 +241,7 @@ public class TransformIdentityTest exten
     @Test
     public void testInputStreamToXMLSecEventAPI() throws Exception {
         TransformIdentity transformIdentity = new TransformIdentity();
-        final List<XMLSecEvent> xmlSecEvents = new ArrayList<XMLSecEvent>();
+        final List<XMLSecEvent> xmlSecEvents = new ArrayList<>();
 
         Transformer transformer = new Transformer() {
             @Override

Modified: santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/utils/HttpRequestRedirectorProxy.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/utils/HttpRequestRedirectorProxy.java?rev=1782475&r1=1782474&r2=1782475&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/utils/HttpRequestRedirectorProxy.java (original)
+++ santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/stax/utils/HttpRequestRedirectorProxy.java Fri Feb 10 14:18:16 2017
@@ -88,7 +88,7 @@ public class HttpRequestRedirectorProxy
          */
         private static final long serialVersionUID = -6720321975901047227L;
         private static MimeTypes mimeTypes = new MimeTypes();
-        private static List<String> paths = new ArrayList<String>();
+        private static List<String> paths = new ArrayList<>();
 
         static {
             paths.add("ie/baltimore/merlin-examples/merlin-xmldsig-twenty-three");