We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48faa30 commit 29ff5baCopy full SHA for 29ff5ba
services-api/src/main/java/io/scalecube/services/api/ServiceMessage.java
@@ -244,17 +244,17 @@ public Builder dataFormat(String dataFormat) {
244
* @return headers
245
*/
246
private Map<String, String> headers() {
247
- return this.headers;
+ return headers;
248
}
249
250
/**
251
* Setter for {@code headers}.
252
*
253
- * @param headers headers
+ * @param headers headers; not null
254
* @return this builder
255
256
public Builder headers(Map<String, String> headers) {
257
- headers.forEach(this::header);
+ Objects.requireNonNull(headers, "headers").forEach(this::header);
258
return this;
259
260
0 commit comments