1 | package pl.zankowski.iextrading4j.client.rest.manager; | |
2 | ||
3 | public class RestResponseBuilder<R> { | |
4 | ||
5 | private R response; | |
6 | private String message; | |
7 | ||
8 | public RestResponseBuilder<R> withResponse(R response) { | |
9 | this.response = response; | |
10 |
1
1. withResponse : replaced return value with null for pl/zankowski/iextrading4j/client/rest/manager/RestResponseBuilder::withResponse → KILLED |
return this; |
11 | } | |
12 | ||
13 | public RestResponseBuilder<R> withMessage(String message) { | |
14 | this.message = message; | |
15 |
1
1. withMessage : replaced return value with null for pl/zankowski/iextrading4j/client/rest/manager/RestResponseBuilder::withMessage → KILLED |
return this; |
16 | } | |
17 | ||
18 | public RestResponse<R> build() { | |
19 |
1
1. build : replaced return value with null for pl/zankowski/iextrading4j/client/rest/manager/RestResponseBuilder::build → KILLED |
return new RestResponse<>(response, message); |
20 | } | |
21 | ||
22 | } | |
Mutations | ||
10 |
1.1 |
|
15 |
1.1 |
|
19 |
1.1 |