Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String toString(Object obj) {
- if (obj instanceof String) {
- return (String) obj;
- } else {
- // no need to log for a null object
- if (obj != null) {
- logger.error("object type seems to be incorrect. expected type String but provided {} (value {})", obj.toString(), obj.getClass());
- }
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement