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

Print this page

        

@@ -291,11 +291,11 @@
 
     public String getType() {
         return type;
     }
 
-    public List getTransforms() {
+    public List<Transform> getTransforms() {
         return Collections.unmodifiableList(allTransforms);
     }
 
     public byte[] getDigestValue() {
         return (digestValue == null ? null : digestValue.clone());

@@ -641,11 +641,11 @@
             XMLSignatureInput xsi = ad.getXMLSignatureInput();
             if (xsi.isNodeSet()) {
                 try {
                     final Set<Node> s = xsi.getNodeSet();
                     return new NodeSetData() {
-                        public Iterator iterator() { return s.iterator(); }
+                        public Iterator<Node> iterator() { return s.iterator(); }
                     };
                 } catch (Exception e) {
                     // log a warning
                     log.log(java.util.logging.Level.WARNING, "cannot cache dereferenced data: " + e);
                     return null;