X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fnode%2Futils%2Fstream%2FNormalizedNodeInputStreamReader.java;h=8bb059c6ea15c57ae2ad140c3e006a46787a27a8;hb=701434f9470989a532b735a361ecbe8e4a5e1b36;hp=bb2f5d41d920d5ce97c723fe6bc91cafc5cd6031;hpb=20156b149d56b1b14a06d344366b8e1af1c22fe8;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java index bb2f5d41d9..8bb059c6ea 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java @@ -1,11 +1,9 @@ /* + * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved. * - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * + * This program and the accompanying materials are made available under the + * 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.controller.cluster.datastore.node.utils.stream; @@ -24,9 +22,9 @@ import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; +import javax.xml.transform.dom.DOMSource; import org.opendaylight.controller.cluster.datastore.node.utils.QNameFactory; import org.opendaylight.yangtools.yang.common.QName; -import org.opendaylight.yangtools.yang.data.api.Node; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates; @@ -76,7 +74,7 @@ public class NormalizedNodeInputStreamReader implements NormalizedNodeStreamRead input = new DataInputStream(stream); } - public NormalizedNodeInputStreamReader(DataInput input) throws IOException { + public NormalizedNodeInputStreamReader(DataInput input) { this.input = Preconditions.checkNotNull(input); } @@ -170,7 +168,7 @@ public class NormalizedNodeInputStreamReader implements NormalizedNodeStreamRead case NodeTypes.ANY_XML_NODE : LOG.debug("Read xml node"); - return Builders.anyXmlBuilder().withValue((Node) readObject()).build(); + return Builders.anyXmlBuilder().withValue((DOMSource) readObject()).build(); case NodeTypes.MAP_NODE : LOG.debug("Read map node {}", identifier); @@ -337,7 +335,7 @@ public class NormalizedNodeInputStreamReader implements NormalizedNodeStreamRead return children; } - private PathArgument readPathArgument() throws IOException { + public PathArgument readPathArgument() throws IOException { // read Type int type = input.readByte();