Skip to content

Commit 9406aef

Browse files
committed
Change getUser(int) to getUser(Integer) to be consistent.
1 parent 208bf52 commit 9406aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/gitlab4j/api/UserApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public Stream<User> getBlockedUsersStream() throws GitLabApiException {
260260
* @return the User instance for the specified user ID
261261
* @throws GitLabApiException if any exception occurs
262262
*/
263-
public User getUser(int userId) throws GitLabApiException {
263+
public User getUser(Integer userId) throws GitLabApiException {
264264
GitLabApiForm formData = new GitLabApiForm().withParam("with_custom_attributes", customAttributesEnabled);
265265
Response response = get(Response.Status.OK, formData.asMap(), "users", userId);
266266
return (response.readEntity(User.class));
@@ -274,7 +274,7 @@ public User getUser(int userId) throws GitLabApiException {
274274
* @param userId the ID of the user to get
275275
* @return the User for the specified user ID as an Optional instance
276276
*/
277-
public Optional<User> getOptionalUser(int userId) {
277+
public Optional<User> getOptionalUser(Integer userId) {
278278
try {
279279
return (Optional.ofNullable(getUser(userId)));
280280
} catch (GitLabApiException glae) {

0 commit comments

Comments
 (0)