garydgregory commented on a change in pull request #757:
URL: https://github.com/apache/commons-lang/pull/757#discussion_r820273294
##########
File path: src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
##########
@@ -414,7 +415,7 @@ public StringBuffer format(final Object obj, final
StringBuffer toAppendTo, fina
return format(((Long) obj).longValue(), toAppendTo);
}
throw new IllegalArgumentException("Unknown class: " +
- (obj == null ? "<null>" : obj.getClass().getName()));
+ (ClassUtils.getName(obj, "<null>")));
Review comment:
Don't need extra parentheses or extra space after comma.
--
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]