MCPcopy Index your code
hub / github.com/google/guice / asModuleChain

Method asModuleChain

core/test/com/google/inject/Asserts.java:56–63  ·  view source on GitHub ↗

Returns the String that would appear in an error message for this chain of classes as modules.

(Class<?>... classes)

Source from the content-addressed store, hash-verified

54 * Returns the String that would appear in an error message for this chain of classes as modules.
55 */
56 public static String asModuleChain(Class<?>... classes) {
57 return Joiner.on(" -> ")
58 .appendTo(
59 new StringBuilder(" (via modules: "),
60 Iterables.transform(ImmutableList.copyOf(classes), Class::getName))
61 .append(")")
62 .toString();
63 }
64
65 /**
66 * Returns the source file appears in error messages based on {@link

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected