Use isEmpty().
This commit is contained in:
parent
b7dd3fd3d1
commit
57a9a5c14b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue