Skip to content

Commit

Permalink
[hotfix] Remove StringUtils.isBlankString which is conflict with isBlank
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Aug 31, 2024
1 parent 369ab56 commit 7aa0cbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1922,14 +1922,10 @@ public String partitionTimestampPattern() {
return options.get(PARTITION_TIMESTAMP_PATTERN);
}

public int readBatchSize() {
return options.get(READ_BATCH_SIZE);
}

public String consumerId() {
String consumerId = options.get(CONSUMER_ID);
if (StringUtils.isBlankString(consumerId)) {
throw new RuntimeException("consumer id cannot be blank string");
if (consumerId != null && consumerId.isEmpty()) {
throw new RuntimeException("consumer id cannot be empty string.");
}
return consumerId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,13 +551,6 @@ public static boolean isBlank(String str) {
return true;
}

public static boolean isBlankString(String str) {
if (str != null && str.length() == 0) {
return true;
}
return false;
}

public static String quote(String str) {
return "`" + str + "`";
}
Expand Down

0 comments on commit 7aa0cbd

Please sign in to comment.