* [BAEL-3019] Add sample code for empty and blank string checks
* [BAEL-3019] Add article link to module README
* [BAEL-3019] Remove blank line in the beginning of certain tests
* [BAEL-3019] Unroll tests and adhere to givenXXX_thenXXX naming convention
* Revert "[BAEL-3019] Add article link to module README"
This reverts commit 675295fafa.
* [BAEL-3019] Bump guava version for 'java-strings-2' to 28.0-jre
9 lines
187 B
Java
9 lines
187 B
Java
package com.baeldung.string.emptystrings;
|
|
|
|
class PlainJavaBlankStringCheck {
|
|
|
|
boolean isBlankString(String string) {
|
|
return string == null || string.trim().isEmpty();
|
|
}
|
|
}
|