X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fschema%2Fprovider%2Fimpl%2FYangTextSchemaSourceSerializationProxy.java;fp=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fschema%2Fprovider%2Fimpl%2FYangTextSchemaSourceSerializationProxy.java;h=1d3e3ba31fa6acfaefb22e4f59199d17e47075ce;hb=f40e99a51cd3fc2c9be3ac8aa0772bdb6b6ce479;hp=e2b55c0c87b761d27f5d91d33491479a7573a9a2;hpb=609f0bd2646991335ab40a9a2265dcc928c0e6f7;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/YangTextSchemaSourceSerializationProxy.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/YangTextSchemaSourceSerializationProxy.java index e2b55c0c87..1d3e3ba31f 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/YangTextSchemaSourceSerializationProxy.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/YangTextSchemaSourceSerializationProxy.java @@ -8,7 +8,7 @@ package org.opendaylight.controller.cluster.schema.provider.impl; import com.google.common.annotations.Beta; -import com.google.common.io.ByteSource; +import com.google.common.io.CharSource; import java.io.IOException; import java.io.Serializable; import org.opendaylight.yangtools.yang.common.Revision; @@ -23,7 +23,7 @@ import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource; public class YangTextSchemaSourceSerializationProxy implements Serializable { private static final long serialVersionUID = -6361268518176019477L; - private final byte[] schemaSource; + private final String schemaSource; private final Revision revision; private final String name; @@ -35,7 +35,7 @@ public class YangTextSchemaSourceSerializationProxy implements Serializable { } public YangTextSchemaSource getRepresentation() { - return YangTextSchemaSource.delegateForByteSource(new SourceIdentifier(Unqualified.of(name), revision), - ByteSource.wrap(schemaSource)); + return YangTextSchemaSource.delegateForCharSource(new SourceIdentifier(Unqualified.of(name), revision), + CharSource.wrap(schemaSource)); } }