--- old/src/java.base/share/classes/sun/security/pkcs/PKCS7.java 2015-04-23 15:28:27.796132902 -0700 +++ new/src/java.base/share/classes/sun/security/pkcs/PKCS7.java 2015-04-23 15:28:27.440132894 -0700 @@ -530,7 +530,7 @@ // CRLs (optional) if (crls != null && crls.length != 0) { // cast to X509CRLImpl[] since X509CRLImpl implements DerEncoder - Set implCRLs = new HashSet(crls.length); + Set implCRLs = new HashSet<>(crls.length); for (X509CRL crl: crls) { if (crl instanceof X509CRLImpl) implCRLs.add((X509CRLImpl) crl); @@ -590,7 +590,7 @@ public SignerInfo[] verify(byte[] bytes) throws NoSuchAlgorithmException, SignatureException { - Vector intResult = new Vector(); + Vector intResult = new Vector<>(); for (int i = 0; i < signerInfos.length; i++) { SignerInfo signerInfo = verify(signerInfos[i], bytes);