MINOR: Refactor return statement and log info#10012
Conversation
a1012b2 to
d3a9122
Compare
There was a problem hiding this comment.
Is this condition check necessary? It is rare in code base.
There was a problem hiding this comment.
OK, I think you are right. We do not need condition check in here. I already revert it.
There was a problem hiding this comment.
How about adding a helper method to check both "null" and "empty"?
d3a9122 to
511ec9a
Compare
There was a problem hiding this comment.
For me the isNotBlank() adds no value. These could just be added to Utils, rather than adding the new class. Also: Add javadoc.
There was a problem hiding this comment.
@tombentley Thanks for your opinion. I have removed isNotBlank() and added javadoc.
511ec9a to
eb524ec
Compare
02584d4 to
d278363
Compare
| * @param str a string to be checked | ||
| * @return true if the string is null, empty or whitespace only; otherwise, return false. | ||
| */ | ||
| public static boolean isBlank(String str) { |
There was a problem hiding this comment.
How about applying this helper method to code base?
There was a problem hiding this comment.
How about applying this helper method to code base?
@chia7712 OK. I will do it on next PR.
before
after
before
after
Committer Checklist (excluded from commit message)