project: Add modernizer
This commit is contained in:
@@ -40,6 +40,7 @@ import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.lang.reflect.Method;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
@@ -150,7 +151,7 @@ public class PluginManagerTest
|
||||
modules.addAll(pluginManager.getPlugins());
|
||||
|
||||
File file = folder.newFile();
|
||||
try (PrintWriter out = new PrintWriter(file, "UTF-8"))
|
||||
try (PrintWriter out = new PrintWriter(file, StandardCharsets.UTF_8))
|
||||
{
|
||||
Injector injector = Guice.createInjector(modules);
|
||||
GraphvizGrapher grapher = injector.getInstance(GraphvizGrapher.class);
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
*/
|
||||
package net.runelite.client.rs;
|
||||
|
||||
import com.google.common.base.Charsets;
|
||||
import com.google.common.io.CharStreams;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import okhttp3.mockwebserver.MockResponse;
|
||||
import okhttp3.mockwebserver.MockWebServer;
|
||||
import org.junit.After;
|
||||
@@ -47,7 +47,7 @@ public class ClientConfigLoaderTest
|
||||
try (InputStream in = getClass().getResourceAsStream("jav_config.ws"))
|
||||
{
|
||||
response = CharStreams.toString(new InputStreamReader(
|
||||
in, Charsets.UTF_8));
|
||||
in, StandardCharsets.UTF_8));
|
||||
}
|
||||
server.enqueue(new MockResponse().setBody(response));
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
*/
|
||||
package net.runelite.client.util;
|
||||
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
@@ -43,9 +42,9 @@ import static org.mockito.Mockito.when;
|
||||
|
||||
public class ItemUtilTest
|
||||
{
|
||||
private static final Set<Integer> SOME_IDS = ImmutableSet.of(ItemID.MITHRIL_BAR, ItemID.DRAGON_BONES);
|
||||
private static final Set<Integer> WRONG_IDS = ImmutableSet.of(ItemID.SCYTHE_OF_VITUR, ItemID.TWISTED_BOW);
|
||||
private static final Set<Integer> MIX_IDS = ImmutableSet.of(
|
||||
private static final Set<Integer> SOME_IDS = Set.of(ItemID.MITHRIL_BAR, ItemID.DRAGON_BONES);
|
||||
private static final Set<Integer> WRONG_IDS = Set.of(ItemID.SCYTHE_OF_VITUR, ItemID.TWISTED_BOW);
|
||||
private static final Set<Integer> MIX_IDS = Set.of(
|
||||
ItemID.MITHRIL_BAR, ItemID.DRAGON_BONES,
|
||||
ItemID.SCYTHE_OF_VITUR, ItemID.TWISTED_BOW
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user