Skip to content

Commit

Permalink
Add InlineMe to Modules.combine(Module), as all callers to this metho…
Browse files Browse the repository at this point in the history
…d can be simplified to just the input parameter.

PiperOrigin-RevId: 631556426
  • Loading branch information
nick-someone authored and Guice Team committed May 7, 2024
1 parent 1701108 commit e67faa9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/com/google/inject/util/Modules.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.errorprone.annotations.CheckReturnValue;
import com.google.errorprone.annotations.InlineMe;
import com.google.inject.AbstractModule;
import com.google.inject.Binder;
import com.google.inject.Binding;
Expand Down Expand Up @@ -122,7 +123,10 @@ public static Module combine(Module... modules) {
return combine(ImmutableSet.copyOf(modules));
}

/** @deprecated there's no need to "combine" one module; just install it directly. */
/**
* @deprecated there's no need to "combine" one module; just install it directly.
*/
@InlineMe(replacement = "module")
@Deprecated
public static Module combine(Module module) {
return module;
Expand Down

0 comments on commit e67faa9

Please sign in to comment.