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 15:29:18 UTC

[commons-numbers] 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-numbers.git


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

commit 63d0309db75f6841e2e6f875ca336a542e2bfcac
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 17 09:17:17 2021 -0500

    Use isEmpty().
---
 .../src/test/java/org/apache/commons/numbers/complex/TestUtils.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/TestUtils.java b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/TestUtils.java
index 5323c98..428b770 100644
--- a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/TestUtils.java
+++ b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/TestUtils.java
@@ -367,7 +367,7 @@ public final class TestUtils {
     private static String preprocessTestData(String line, TestDataFlagOption option,
             Consumer<String> flaggedDataConsumer) {
         // Skip comments and empty lines
-        if (line.length() == 0 || line.charAt(0) == '#') {
+        if (line.isEmpty() || line.charAt(0) == '#') {
             return null;
         }
         if (line.charAt(0) == ';') {