Use isEmpty() where possible
See gh-20370
This commit is contained in:
committed by
Stephane Nicoll
parent
4598680692
commit
9588188800
@@ -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(" ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user