commit | 95060bc812dfa389d9279b783c1e2c71143c9ded | [log] [tgz] |
---|---|---|
author | Gary Gregory <garydgregory@gmail.com> | Sun Jan 17 09:31:58 2021 -0500 |
committer | Gary Gregory <garydgregory@gmail.com> | Sun Jan 17 09:31:58 2021 -0500 |
tree | 5c4fcc41eb8fa7d9378ce5f3f229fc238e5db9b8 | |
parent | 938ec34754cd723646db8b1cefbff546843c9686 [diff] |
Use isEmpty().
diff --git a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/ResultsCommand.java b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/ResultsCommand.java index 85ec4c5..e0ee5d0 100644 --- a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/ResultsCommand.java +++ b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/ResultsCommand.java
@@ -1025,7 +1025,7 @@ .collect(Collectors.joining(", ")); // Summarise the failures across all tests final String summary = getFailuresSummary(testResults); - if (summary.length() != 0) { + if (!summary.isEmpty()) { // Identify RNGs with no systematic failures highlight = false; if (showFailedTests) {