MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/9h404p/java_11_string_api_updates/e6awpzn/?context=3
r/java • u/pivovarit • Sep 19 '18
52 comments sorted by
View all comments
1
These are really nice. My only complaint is that common utils' isBlank(string) allows you to check for null in addition to zero-length or all-whitespace strings, which is really helpful.
isBlank(string)
5 u/0x256 Sep 20 '18 But null is not a blank string? 3 u/dpash Sep 20 '18 You can't call a method on a null value anyway, so it's kinda moot.
5
But null is not a blank string?
3 u/dpash Sep 20 '18 You can't call a method on a null value anyway, so it's kinda moot.
3
You can't call a method on a null value anyway, so it's kinda moot.
1
u/thomascgalvin Sep 20 '18
These are really nice. My only complaint is that common utils'
isBlank(string)allows you to check for null in addition to zero-length or all-whitespace strings, which is really helpful.