ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1789976 - /webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java
Date Mon, 03 Apr 2017 12:07:19 GMT
Author: coheigea
Date: Mon Apr  3 12:07:18 2017
New Revision: 1789976

URL: http://svn.apache.org/viewvc?rev=1789976&view=rev
Log:
Fixing build for JDK9

Modified:
    webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java

Modified: webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java?rev=1789976&r1=1789975&r2=1789976&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java
(original)
+++ webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java
Mon Apr  3 12:07:18 2017
@@ -36,6 +36,7 @@ import javax.xml.parsers.DocumentBuilder
 import javax.xml.parsers.ParserConfigurationException;
 import javax.xml.stream.XMLStreamConstants;
 import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.events.Attribute;
 import javax.xml.stream.events.Comment;
 import javax.xml.stream.events.Namespace;
 import javax.xml.stream.events.ProcessingInstruction;
@@ -443,15 +444,15 @@ public class SAMLTokenInputHandler exten
                 }
                 currentNode = currentNode.appendChild(element);
                 @SuppressWarnings("unchecked")
-                Iterator<XMLSecNamespace> namespaceIterator = xmlSecStartElement.getNamespaces();
+                Iterator<Namespace> namespaceIterator = xmlSecStartElement.getNamespaces();
                 while (namespaceIterator.hasNext()) {
-                    XMLSecNamespace next = namespaceIterator.next();
+                    XMLSecNamespace next = (XMLSecNamespace)namespaceIterator.next();
                     parseXMLEvent(next, currentNode, document);
                 }
                 @SuppressWarnings("unchecked")
-                Iterator<XMLSecAttribute> attributesIterator = xmlSecStartElement.getAttributes();
+                Iterator<Attribute> attributesIterator = xmlSecStartElement.getAttributes();
                 while (attributesIterator.hasNext()) {
-                    XMLSecAttribute next = attributesIterator.next();
+                    XMLSecAttribute next = (XMLSecAttribute)attributesIterator.next();
                     parseXMLEvent(next, currentNode, document);
                 }
                 //add namespace which is not declared on current element but must be on a
parent element:



Mime
View raw message