MCPcopy Create free account
hub / github.com/google/guice / format

Method format

core/src/com/google/inject/internal/Messages.java:63–68  ·  view source on GitHub ↗

Calls String#format after converting the arguments using some standard guice formatting for Key, Class and Member objects.

(String messageFormat, Object... arguments)

Source from the content-addressed store, hash-verified

61 * for {@link Key}, {@link Class} and {@link Member} objects.
62 */
63 public static String format(String messageFormat, Object... arguments) {
64 for (int i = 0; i < arguments.length; i++) {
65 arguments[i] = convert(arguments[i]);
66 }
67 return String.format(messageFormat, arguments);
68 }
69
70 /** Returns the formatted message for an exception with the specified messages. */
71 public static String formatMessages(String heading, Collection<Message> errorMessages) {

Callers 5

createMethod · 0.95
formatMethod · 0.95
getSuggestionsMethod · 0.95
formatMessagesMethod · 0.45
formatTextMethod · 0.45

Calls 1

convertMethod · 0.95

Tested by

no test coverage detected