You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/01/17 18:24:43 UTC

[commons-rng] branch master updated: Use isEmpty().

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git


The following commit(s) were added to refs/heads/master by this push:
     new 95060bc  Use isEmpty().
     new b9f778c  Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-rng.git
95060bc is described below

commit 95060bc812dfa389d9279b783c1e2c71143c9ded
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 17 09:31:58 2021 -0500

    Use isEmpty().
---
 .../java/org/apache/commons/rng/examples/stress/ResultsCommand.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ class ResultsCommand implements Callable<Void> {
                                                  .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) {