Use isEmpty().

This commit is contained in:
Gary Gregory 2021-01-17 09:15:16 -05:00
parent b7dd3fd3d1
commit 57a9a5c14b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {