findbugs
Change-Id: I040eee94d2eb2622b32fbe8dbf06d81b54765065
diff --git a/utils/netty/src/main/java/org/onlab/netty/MessageEncoder.java b/utils/netty/src/main/java/org/onlab/netty/MessageEncoder.java
index d4b82cf..fe89039 100644
--- a/utils/netty/src/main/java/org/onlab/netty/MessageEncoder.java
+++ b/utils/netty/src/main/java/org/onlab/netty/MessageEncoder.java
@@ -15,6 +15,8 @@
*/
package org.onlab.netty;
+import java.nio.charset.StandardCharsets;
+
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -32,7 +34,7 @@
private final Logger log = LoggerFactory.getLogger(getClass());
// onosiscool in ascii
- public static final byte[] PREAMBLE = "onosiscool".getBytes();
+ static final byte[] PREAMBLE = "onosiscool".getBytes(StandardCharsets.US_ASCII);
public static final int HEADER_VERSION = 1;
public static final int SERIALIZER_VERSION = 1;