X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fnetconf-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Futil%2Fmessages%2FNetconfMessageConstants.java;h=db2387530d04ecb34d70261ad2c737fe07d775d6;hb=0c6d75de46e116e8d54ddda6aefd767a5b1e2257;hp=4117918d5322ae79e8cfa9b0e8138c08ddb3ce7e;hpb=6d7e12bf3ef64e5004703a1d540e7e26f30a9595;p=netconf.git diff --git a/netconf/netconf-util/src/main/java/org/opendaylight/netconf/util/messages/NetconfMessageConstants.java b/netconf/netconf-util/src/main/java/org/opendaylight/netconf/util/messages/NetconfMessageConstants.java index 4117918d53..db2387530d 100644 --- a/netconf/netconf-util/src/main/java/org/opendaylight/netconf/util/messages/NetconfMessageConstants.java +++ b/netconf/netconf-util/src/main/java/org/opendaylight/netconf/util/messages/NetconfMessageConstants.java @@ -5,30 +5,29 @@ * 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.messages; -import static java.nio.charset.StandardCharsets.UTF_8; +import org.eclipse.jdt.annotation.NonNullByDefault; +@NonNullByDefault public final class NetconfMessageConstants { - - private NetconfMessageConstants(){} - /** - * The NETCONF 1.0 old-style message separator. This is framing mechanism - * is used by default. + * The NETCONF 1.0 old-style message separator. This is framing mechanism is used by default. */ - public static final byte[] END_OF_MESSAGE = "]]>]]>".getBytes(UTF_8); + public static final String END_OF_MESSAGE = "]]>]]>"; // bytes - + @Deprecated(since = "3.0.6", forRemoval = true) public static final int MIN_HEADER_LENGTH = 4; // bytes - + @Deprecated(since = "3.0.6", forRemoval = true) public static final int MAX_HEADER_LENGTH = 13; - public static final byte[] START_OF_CHUNK = "\n#".getBytes(UTF_8); - public static final byte[] END_OF_CHUNK = "\n##\n".getBytes(UTF_8); + public static final String START_OF_CHUNK = "\n#"; + public static final String END_OF_CHUNK = "\n##\n"; + private NetconfMessageConstants() { + // Hidden on purpose + } }