Bump upstreams
[netconf.git] / plugins / netconf-client-mdsal / src / main / java / org / opendaylight / netconf / client / mdsal / MonitoringSchemaSourceProvider.java
index ed84578b51bb91a4b9de77c00728f113e04120f2..d6d6898356af48e0473ae44688f0ece4212b1b4b 100644 (file)
@@ -15,7 +15,6 @@ import static org.opendaylight.netconf.common.mdsal.NormalizedDataUtil.NETCONF_D
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
-import java.nio.charset.StandardCharsets;
 import java.util.Optional;
 import javax.xml.transform.dom.DOMSource;
 import org.eclipse.jdt.annotation.NonNull;
@@ -110,8 +109,7 @@ public final class MonitoringSchemaSourceProvider implements SchemaSourceProvide
                             id + ": Unexpected response to get-schema, schema not present in message for: "
                                 + sourceIdentifier));
                     LOG.debug("{}: YANG Schema successfully retrieved for {}:{}", id, moduleName, revision);
-                    return new CachedYangTextSchemaSource(id, sourceIdentifier, moduleName,
-                        schemaString.getBytes(StandardCharsets.UTF_8));
+                    return new CachedYangTextSchemaSource(id, sourceIdentifier, moduleName, schemaString);
                 }
 
                 LOG.warn("{}: YANG schema was not successfully retrieved for {}. Errors: {}", id, sourceIdentifier,