Keeping constants in an interface is an antipattern, correct that.
Change-Id: I71a49126ec05107dc09ff05e47d16ba461d92e9d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* 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;
package org.opendaylight.netconf.util.messages;
-public interface NetconfMessageConstants {
+import org.eclipse.jdt.annotation.NonNullByDefault;
+@NonNullByDefault
+public final class 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.
- String END_OF_MESSAGE = "]]>]]>";
+ public static final String END_OF_MESSAGE = "]]>]]>";
-
- int MIN_HEADER_LENGTH = 4;
+ @Deprecated(since = "3.0.6", forRemoval = true)
+ public static final int MIN_HEADER_LENGTH = 4;
+ @Deprecated(since = "3.0.6", forRemoval = true)
+ public static final int MAX_HEADER_LENGTH = 13;
- int MAX_HEADER_LENGTH = 13;
+ public static final String START_OF_CHUNK = "\n#";
+ public static final String END_OF_CHUNK = "\n##\n";
- String START_OF_CHUNK = "\n#";
- String END_OF_CHUNK = "\n##\n";
+ private NetconfMessageConstants() {
+ // Hidden on purpose
+ }