src/share/classes/org/jcp/xml/dsig/internal/dom/DOMKeyInfoFactory.java

Print this page

        

*** 46,60 **** */ public final class DOMKeyInfoFactory extends KeyInfoFactory { public DOMKeyInfoFactory() { } public KeyInfo newKeyInfo(List content) { return newKeyInfo(content, null); } ! @SuppressWarnings("unchecked") public KeyInfo newKeyInfo(List content, String id) { return new DOMKeyInfo(content, id); } public KeyName newKeyName(String name) { --- 46,61 ---- */ public final class DOMKeyInfoFactory extends KeyInfoFactory { public DOMKeyInfoFactory() { } + @SuppressWarnings("rawtypes") public KeyInfo newKeyInfo(List content) { return newKeyInfo(content, null); } ! @SuppressWarnings({ "unchecked", "rawtypes" }) public KeyInfo newKeyInfo(List content, String id) { return new DOMKeyInfo(content, id); } public KeyName newKeyName(String name) {
*** 76,109 **** public PGPData newPGPData(byte[] keyId) { return newPGPData(keyId, null, null); } ! @SuppressWarnings("unchecked") public PGPData newPGPData(byte[] keyId, byte[] keyPacket, List other) { return new DOMPGPData(keyId, keyPacket, other); } ! @SuppressWarnings("unchecked") public PGPData newPGPData(byte[] keyPacket, List other) { return new DOMPGPData(keyPacket, other); } public RetrievalMethod newRetrievalMethod(String uri) { return newRetrievalMethod(uri, null, null); } ! @SuppressWarnings("unchecked") public RetrievalMethod newRetrievalMethod(String uri, String type, List transforms) { if (uri == null) { throw new NullPointerException("uri must not be null"); } return new DOMRetrievalMethod(uri, type, transforms); } ! @SuppressWarnings("unchecked") public X509Data newX509Data(List content) { return new DOMX509Data(content); } public X509IssuerSerial newX509IssuerSerial(String issuerName, --- 77,110 ---- public PGPData newPGPData(byte[] keyId) { return newPGPData(keyId, null, null); } ! @SuppressWarnings({ "unchecked", "rawtypes" }) public PGPData newPGPData(byte[] keyId, byte[] keyPacket, List other) { return new DOMPGPData(keyId, keyPacket, other); } ! @SuppressWarnings({ "unchecked", "rawtypes" }) public PGPData newPGPData(byte[] keyPacket, List other) { return new DOMPGPData(keyPacket, other); } public RetrievalMethod newRetrievalMethod(String uri) { return newRetrievalMethod(uri, null, null); } ! @SuppressWarnings({ "unchecked", "rawtypes" }) public RetrievalMethod newRetrievalMethod(String uri, String type, List transforms) { if (uri == null) { throw new NullPointerException("uri must not be null"); } return new DOMRetrievalMethod(uri, type, transforms); } ! @SuppressWarnings("rawtypes") public X509Data newX509Data(List content) { return new DOMX509Data(content); } public X509IssuerSerial newX509IssuerSerial(String issuerName,