Use isEmpty() where possible

See gh-20370
This commit is contained in:
dreis2211
2020-03-02 20:36:46 +01:00
committed by Stephane Nicoll
parent 4598680692
commit 9588188800
7 changed files with 13 additions and 13 deletions

View File

@@ -63,7 +63,7 @@ public class TotalProgressBar implements Consumer<TotalProgressEvent> {
public TotalProgressBar(String prefix, char progressChar, boolean bookend, PrintStream out) {
this.progressChar = progressChar;
this.bookend = bookend;
if (prefix != null && prefix.length() > 0) {
if (prefix != null && !prefix.isEmpty()) {
out.print(prefix);
out.print(" ");
}