Calls String#format after converting the arguments using some standard guice formatting for Key, Class and Member objects.
(String messageFormat, Object... arguments)
| 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) { |
no test coverage detected