findbugs
Change-Id: I040eee94d2eb2622b32fbe8dbf06d81b54765065
Showing
1 changed file
with
3 additions
and
1 deletions
| ... | @@ -15,6 +15,8 @@ | ... | @@ -15,6 +15,8 @@ |
| 15 | */ | 15 | */ |
| 16 | package org.onlab.netty; | 16 | package org.onlab.netty; |
| 17 | 17 | ||
| 18 | +import java.nio.charset.StandardCharsets; | ||
| 19 | + | ||
| 18 | import org.slf4j.Logger; | 20 | import org.slf4j.Logger; |
| 19 | import org.slf4j.LoggerFactory; | 21 | import org.slf4j.LoggerFactory; |
| 20 | 22 | ||
| ... | @@ -32,7 +34,7 @@ public class MessageEncoder extends MessageToByteEncoder<InternalMessage> { | ... | @@ -32,7 +34,7 @@ public class MessageEncoder extends MessageToByteEncoder<InternalMessage> { |
| 32 | private final Logger log = LoggerFactory.getLogger(getClass()); | 34 | private final Logger log = LoggerFactory.getLogger(getClass()); |
| 33 | 35 | ||
| 34 | // onosiscool in ascii | 36 | // onosiscool in ascii |
| 35 | - public static final byte[] PREAMBLE = "onosiscool".getBytes(); | 37 | + static final byte[] PREAMBLE = "onosiscool".getBytes(StandardCharsets.US_ASCII); |
| 36 | public static final int HEADER_VERSION = 1; | 38 | public static final int HEADER_VERSION = 1; |
| 37 | public static final int SERIALIZER_VERSION = 1; | 39 | public static final int SERIALIZER_VERSION = 1; |
| 38 | 40 | ... | ... |
-
Please register or login to post a comment