Skip to content

Commit 424b050

Browse files
author
muriloalvesdev
committed
modifier explicit all args constructor
1 parent 1ede692 commit 424b050

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/main/java/br/com/developers/github/http/service/developer/impl/GithubUserServiceImpl.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,27 @@
88
import br.com.developers.github.http.service.developer.GithubUserService;
99
import br.com.developers.github.http.service.request.Send;
1010
import br.com.developers.github.http.utils.UrlUtils;
11-
import lombok.AccessLevel;
12-
import lombok.AllArgsConstructor;
1311

14-
@AllArgsConstructor(access = AccessLevel.PACKAGE)
1512
@Service
1613
public class GithubUserServiceImpl implements GithubUserService<Developer> {
1714

1815
private Send<Developer> send;
1916

20-
@Value("${github.base.url}")
2117
private String baseUrl;
2218

23-
@Value("${github.search.users}")
2419
private String searchUsers;
2520

21+
GithubUserServiceImpl(Send<Developer> send, @Value("${github.base.url}") String baseUrl,
22+
@Value("${github.search.users}") String searchUsers) {
23+
this.send = send;
24+
this.baseUrl = baseUrl;
25+
this.searchUsers = searchUsers;
26+
}
27+
2628
public ResponseEntity<Developer> search(String qualifier, String sort, String order, int perPage,
2729
int page) {
2830
UriComponents uri =
2931
UrlUtils.mountUrl(this.baseUrl, this.searchUsers, qualifier, sort, order, perPage, page);
3032
return this.send.sendRequest(uri);
3133
}
32-
3334
}

0 commit comments

Comments
 (0)