Migrate from the deprecated Charsets to StandardCharsets
Migrate from the deprecated Charsets constants (in Guava) to the
StandardCharsets constants (in the JDK).
Change-Id: I2c65842546420455d876b85f56ebda08e785ef23
Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/src/test/java/com/googlesource/gerrit/plugins/uploadvalidator/TestUtils.java b/src/test/java/com/googlesource/gerrit/plugins/uploadvalidator/TestUtils.java
index 358e527..2e96d1d 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/uploadvalidator/TestUtils.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/uploadvalidator/TestUtils.java
@@ -14,7 +14,6 @@
package com.googlesource.gerrit.plugins.uploadvalidator;
-import com.google.common.base.Charsets;
import com.google.common.base.Function;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.LoadingCache;
@@ -24,6 +23,7 @@
import com.google.gerrit.server.git.validators.CommitValidationMessage;
import java.io.File;
import java.io.IOException;
+import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -47,7 +47,7 @@
public static final PluginConfig EMPTY_PLUGIN_CONFIG =
PluginConfig.create("", new Config(), null);
- protected static final byte[] EMPTY_CONTENT = "".getBytes(Charsets.UTF_8);
+ protected static final byte[] EMPTY_CONTENT = "".getBytes(StandardCharsets.UTF_8);
private static final Function<CommitValidationMessage, String> MESSAGE_TRANSFORMER =
new Function<CommitValidationMessage, String>() {