pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1845196 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
Date Tue, 30 Oct 2018 04:48:32 GMT
Author: tilman
Date: Tue Oct 30 04:48:32 2018
New Revision: 1845196

URL: http://svn.apache.org/viewvc?rev=1845196&view=rev
Log:
PDFBOX-4071: use jdk7 syntax

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java?rev=1845196&r1=1845195&r2=1845196&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/CertificateVerifier.java
Tue Oct 30 04:48:32 2018
@@ -103,8 +103,8 @@ public final class CertificateVerifier
 
             // Prepare a set of trusted root CA certificates
             // and a set of intermediate certificates
-            Set<X509Certificate> trustedRootCerts = new HashSet<X509Certificate>();
-            Set<X509Certificate> intermediateCerts = new HashSet<X509Certificate>();
+            Set<X509Certificate> trustedRootCerts = new HashSet<>();
+            Set<X509Certificate> intermediateCerts = new HashSet<>();
             X509Certificate issuerCert = null;
             for (X509Certificate additionalCert : additionalCerts)
             {
@@ -212,7 +212,7 @@ public final class CertificateVerifier
         selector.setCertificate(cert);
 
         // Create the trust anchors (set of root CA certificates)
-        Set<TrustAnchor> trustAnchors = new HashSet<TrustAnchor>();
+        Set<TrustAnchor> trustAnchors = new HashSet<>();
         for (X509Certificate trustedRootCert : trustedRootCerts)
         {
             trustAnchors.add(new TrustAnchor(trustedRootCert, null));



Mime
View raw message