Skip to content

Commit

Permalink
changed collections.emptyMap (#4966)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpapavas authored Apr 1, 2020
1 parent 86a17a9 commit a8468b8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ public RestResponse<KsqlEntityList> postKsqlRequest(

public RestResponse<List<StreamedRow>> postQueryRequest(
final String ksql,
final Map<String, ?> serverProperties,
final Map<String, ?> requestProperties,
final Optional<Long> previousCommandSeqNum
) {
return post(
QUERY_PATH,
createKsqlRequest(ksql, Collections.emptyMap(), previousCommandSeqNum),
createKsqlRequest(ksql, requestProperties, previousCommandSeqNum),
KsqlTarget::toRows
);
}
Expand All @@ -176,13 +176,13 @@ public RestResponse<StreamPublisher<String>> postPrintTopicRequest(

private KsqlRequest createKsqlRequest(
final String ksql,
final Map<String, ?> serverProperties,
final Map<String, ?> requestProperties,
final Optional<Long> previousCommandSeqNum
) {
return new KsqlRequest(
ksql,
localProperties.toMap(),
serverProperties,
requestProperties,
previousCommandSeqNum.orElse(null)
);
}
Expand Down

0 comments on commit a8468b8

Please sign in to comment.