Skip to content

Commit

Permalink
LPS-202453 org-opensearch-client-java-client: Make Java 8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
peerkar authored and brianchandotcom committed Dec 18, 2023
1 parent 9daed5e commit fa4f001
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ public CatRequestBase(CatRequestBaseBuilder<?> builder) {

protected final Map<String, String> queryParameters() {
Map<String, String> params = new HashMap<>();
if (headers != null && !headers.isBlank()) {
if (headers != null && !headers.isEmpty()) {
params.put("h", headers);
}
if (sort != null && !sort.isBlank()) {
if (sort != null && !sort.isEmpty()) {
params.put("s", sort);
}
params.put("format", "json");
Expand Down Expand Up @@ -127,3 +127,4 @@ public final BuilderT sort(@Nullable String sort) {
}

}
/* @generated */

0 comments on commit fa4f001

Please sign in to comment.