File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/gitlab4j/api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments