Skip to content

Commit

Permalink
dump cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Sep 21, 2018
1 parent d57a0ec commit 7d13c57
Showing 1 changed file with 7 additions and 4 deletions.
Expand Up @@ -248,12 +248,15 @@ public void shortDump(StringBuilder sb) {
if (runAsAccountOid != null) {
sb.append("runAsAccountOid=").append(runAsAccountOid).append(",");
}
if (sb.charAt(sb.length() - 1) == ',') {
if (isEmpty()) {
sb.append("(empty)");
} else {
sb.deleteCharAt(sb.length() - 1);
}
if (sb.length() == 0) {
sb.append("(empty)");
}
}

private boolean isEmpty() {
return raw == null && completePostponed == null && force == null && postpone == null && doNotDiscovery == null && overwrite == null && runAsAccountOid == null;
}

}

0 comments on commit 7d13c57

Please sign in to comment.