Switch to using StandardCharsets
[netconf.git] / netconf / netconf-util / src / main / java / org / opendaylight / netconf / util / messages / NetconfMessageConstants.java
index 5a8d588dfe17351ef495c93f8c6250db99689129..4117918d5322ae79e8cfa9b0e8138c08ddb3ce7e 100644 (file)
@@ -8,16 +8,17 @@
 
 package org.opendaylight.netconf.util.messages;
 
-import com.google.common.base.Charsets;
+import static java.nio.charset.StandardCharsets.UTF_8;
 
 public final class NetconfMessageConstants {
 
     private NetconfMessageConstants(){}
+
     /**
      * The NETCONF 1.0 old-style message separator. This is framing mechanism
      * is used by default.
      */
-    public static final byte[] END_OF_MESSAGE = "]]>]]>".getBytes(Charsets.UTF_8);
+    public static final byte[] END_OF_MESSAGE = "]]>]]>".getBytes(UTF_8);
 
     // bytes
 
@@ -27,7 +28,7 @@ public final class NetconfMessageConstants {
 
     public static final int MAX_HEADER_LENGTH = 13;
 
-    public static final byte[] START_OF_CHUNK = "\n#".getBytes(Charsets.UTF_8);
-    public static final byte[] END_OF_CHUNK = "\n##\n".getBytes(Charsets.UTF_8);
+    public static final byte[] START_OF_CHUNK = "\n#".getBytes(UTF_8);
+    public static final byte[] END_OF_CHUNK = "\n##\n".getBytes(UTF_8);
 
 }