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: 630083395
  • Loading branch information
nick-someone authored and Guice Team committed May 2, 2024
1 parent 1561d4a commit deef8d4
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 deef8d4

Please sign in to comment.