Skip to content

Commit 13a9c48

Browse files
committed
Change isBlank to isEmpty (different java versions)
1 parent c5ce748 commit 13a9c48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bitgo-java-api/src/main/java/com/bitso/bitgo/v2/BitGoClientImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@ public Optional<SendCoinsResponse> sendMany(@NonNull String coin, @NonNull Strin
109109
@NonNull Map<String, BigDecimal> recipients, @NonNull String sequenceId,
110110
Map<String, Object> optionalParameters) throws IOException {
111111
// Validate all needed parameters
112-
if (coin.isBlank()) {
112+
if (coin.isEmpty()) {
113113
throw new IllegalArgumentException("Invalid currency");
114114
}
115-
if (walletId.isBlank()) {
115+
if (walletId.isEmpty()) {
116116
throw new IllegalArgumentException("WalletId can't be empty");
117117
}
118-
if (walletPass.isBlank()) {
118+
if (walletPass.isEmpty()) {
119119
throw new IllegalArgumentException("WalletPass can't be empty ");
120120
}
121-
if (sequenceId.isBlank()) {
121+
if (sequenceId.isEmpty()) {
122122
throw new IllegalArgumentException("SequenceId can't be empty");
123123
}
124124
if (recipients.size() == 0) {

0 commit comments

Comments
 (0)