Fix HardcodedNamespaceResolver 33/79133/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 2 Jan 2019 12:44:55 +0000 (13:44 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 2 Jan 2019 12:48:02 +0000 (13:48 +0100)
Java 10 changed the getPrefixes() to return Iterator<String>, making
this class fail to compile with JDK10+.

Fix this by adjusting the return type to match.

Change-Id: Iee84faebe2adddd710e40a229eb1705a324b50bc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-util/src/main/java/org/opendaylight/netconf/util/xml/HardcodedNamespaceResolver.java

index 942fe86a4cbfc11b451738568e7d946a5a307e99..ceb50b1920cf09ba49fb30e9ad2441f745bd8387 100644 (file)
@@ -5,7 +5,6 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.netconf.util.xml;
 
 import com.google.common.collect.ImmutableMap;
@@ -49,9 +48,8 @@ public class HardcodedNamespaceResolver implements NamespaceContext {
     }
 
     @Override
-    public Iterator<?> getPrefixes(final String namespaceURI) {
+    public Iterator<String> getPrefixes(final String namespaceURI) {
         // Not needed in this context.
         return null;
     }
-
 }