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-math.git


The following commit(s) were added to refs/heads/master by this push:
     new 57a9a5c  Use isEmpty().
57a9a5c is described below

commit 57a9a5c14b1bdac50fdf737c63c880a5fb9e106a
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jan 17 09:15:16 2021 -0500

    Use isEmpty().
---
 src/main/java/org/apache/commons/math4/complex/ComplexFormat.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/math4/complex/ComplexFormat.java 
b/src/main/java/org/apache/commons/math4/complex/ComplexFormat.java
index 34fc506..85ab925 100644
--- a/src/main/java/org/apache/commons/math4/complex/ComplexFormat.java
+++ b/src/main/java/org/apache/commons/math4/complex/ComplexFormat.java
@@ -146,7 +146,7 @@ public class ComplexFormat {
         if (imaginaryCharacter == null) {
             throw new NullArgumentException();
         }
-        if (imaginaryCharacter.length() == 0) {
+        if (imaginaryCharacter.isEmpty()) {
             throw new NoDataException();
         }
         if (imaginaryFormat == null) {

Reply via email to