Use StandardCharsets instead of Guava 77/41977/2
authorRobert Varga <rovarga@cisco.com>
Mon, 18 Jul 2016 14:23:03 +0000 (16:23 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 18 Jul 2016 15:31:42 +0000 (17:31 +0200)
Use of Guava's Charsets for recent Java versions is deprecated.

Change-Id: Iefdaca294dbbcfbcd0a9b97074dd4612f348cfa7
Signed-off-by: Robert Varga <rovarga@cisco.com>
library/impl/src/test/java/org/opendaylight/ovsdb/lib/jsonrpc/JsonRpcDecoderTest.java

index 48c58e62f61c7c9165038ed5e526759c7ed48bb3..64f439f7f2c994b5a676ea9532bc8cd8aeb63ee1 100644 (file)
@@ -10,12 +10,12 @@ package org.opendaylight.ovsdb.lib.jsonrpc;
 import static io.netty.buffer.Unpooled.copiedBuffer;
 import static org.junit.Assert.assertEquals;
 
-import com.google.common.base.Charsets;
 import com.google.common.io.Resources;
 import io.netty.channel.embedded.EmbeddedChannel;
 import io.netty.handler.codec.DecoderException;
 import io.netty.util.CharsetUtil;
 import java.net.URL;
+import java.nio.charset.StandardCharsets;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -37,9 +37,9 @@ public class JsonRpcDecoderTest {
         ch = new EmbeddedChannel(decoder);
 
         URL testJsonUrl = Resources.getResource(JsonRpcDecoderTest.class, "test.json");
-        testJson = Resources.toString(testJsonUrl, Charsets.UTF_8);
+        testJson = Resources.toString(testJsonUrl, StandardCharsets.UTF_8);
         URL prettyTestJsoUrl = Resources.getResource(JsonRpcDecoderTest.class, "pretty-test.json");
-        prettyTestJson = Resources.toString(prettyTestJsoUrl, Charsets.UTF_8);
+        prettyTestJson = Resources.toString(prettyTestJsoUrl, StandardCharsets.UTF_8);
     }
 
     /**