Skip to content

Commit 29ff5ba

Browse files
committed
Minor cosmetic update
1 parent 48faa30 commit 29ff5ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services-api/src/main/java/io/scalecube/services/api/ServiceMessage.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,17 +244,17 @@ public Builder dataFormat(String dataFormat) {
244244
* @return headers
245245
*/
246246
private Map<String, String> headers() {
247-
return this.headers;
247+
return headers;
248248
}
249249

250250
/**
251251
* Setter for {@code headers}.
252252
*
253-
* @param headers headers
253+
* @param headers headers; not null
254254
* @return this builder
255255
*/
256256
public Builder headers(Map<String, String> headers) {
257-
headers.forEach(this::header);
257+
Objects.requireNonNull(headers, "headers").forEach(this::header);
258258
return this;
259259
}
260260

0 commit comments

Comments
 (0)