From ed68b9de3ac9cec7370f7a7eeaa0ac2bc2dc4c47 Mon Sep 17 00:00:00 2001 From: Daniel Woffinden Date: Wed, 10 Apr 2024 13:02:08 -0700 Subject: [PATCH] Inline unnecessary `AbstractModule` wrappers PiperOrigin-RevId: 623580982 Change-Id: I04afed7ad859f24ae2b1c95ca08a7230c1a7e81f --- .../tsunami/main/cli/server/RemoteServerLoaderTest.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/main/src/test/java/com/google/tsunami/main/cli/server/RemoteServerLoaderTest.java b/main/src/test/java/com/google/tsunami/main/cli/server/RemoteServerLoaderTest.java index f92367f4..d67a279c 100644 --- a/main/src/test/java/com/google/tsunami/main/cli/server/RemoteServerLoaderTest.java +++ b/main/src/test/java/com/google/tsunami/main/cli/server/RemoteServerLoaderTest.java @@ -18,7 +18,6 @@ import static com.google.common.truth.Truth.assertThat; import com.google.common.collect.ImmutableList; -import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.tsunami.common.server.LanguageServerCommand; import java.time.Duration; @@ -45,13 +44,7 @@ public void runServerProcess_whenPathExistsAndNormalPort_returnsValidProcessList "157.34.0.2:8881")); RemoteServerLoader loader = - Guice.createInjector( - new AbstractModule() { - @Override - protected void configure() { - install(new RemoteServerLoaderModule(commands)); - } - }) + Guice.createInjector(new RemoteServerLoaderModule(commands)) .getInstance(RemoteServerLoader.class); var processList = loader.runServerProcesses(); assertThat(processList).hasSize(1);