Skip to content

Commit 3f57ca4

Browse files
authored
Fix chaining for getter/setter baseUrl (#11)
1 parent 1b4a448 commit 3f57ca4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/ericsson/eiffelcommons/utils/HttpRequest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ public enum HttpMethod {
4747
GET, POST, DELETE, PUT
4848
}
4949

50-
@Getter
51-
@Setter
5250
protected String baseUrl;
5351

5452
@Getter
@@ -89,8 +87,9 @@ public String getBaseUrl() {
8987
* Sets the base url(not including endpoint) for example: http://localhost:8080
9088
* @param baseUrl
9189
*/
92-
public void setBaseUrl(String baseUrl) {
90+
public HttpRequest setBaseUrl(String baseUrl) {
9391
this.baseUrl = baseUrl;
92+
return this;
9493
}
9594

9695
/**

0 commit comments

Comments
 (0)