stawirej commented on code in PR #953:
URL: https://github.com/apache/commons-lang/pull/953#discussion_r976937060
##########
src/main/java/org/apache/commons/lang3/Validate.java:
##########
@@ -1265,7 +1264,11 @@ public static void isAssignableFrom(final Class<?>
superType, final Class<?> typ
public static void isAssignableFrom(final Class<?> superType, final
Class<?> type, final String message, final Object... values) {
// TODO when breaking BC, consider returning type
if (!superType.isAssignableFrom(type)) {
- throw new IllegalArgumentException(String.format(message, values));
+ throw new IllegalArgumentException(getMessage(message, values));
}
}
+
+ private static String getMessage(final String message, final Object...
values) {
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]