Skip to content

Commit

Permalink
Inline unnecessary AbstractModule wrappers
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 623580982
Change-Id: I04afed7ad859f24ae2b1c95ca08a7230c1a7e81f
  • Loading branch information
dwoffinden authored and copybara-github committed Apr 10, 2024
1 parent 96b5229 commit ed68b9d
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit ed68b9d

Please sign in to comment.