@@ -331,7 +331,7 @@ public Optional<MergeRequest> getOptionalMergeRequest(Object projectIdOrPath, Lo
331331 * @return a list containing the commits for the specified merge request
332332 * @throws GitLabApiException GitLabApiException if any exception occurs during execution
333333 */
334- public List <Commit > getCommits (Object projectIdOrPath , int mergeRequestIid ) throws GitLabApiException {
334+ public List <Commit > getCommits (Object projectIdOrPath , Long mergeRequestIid ) throws GitLabApiException {
335335 return (getCommits (projectIdOrPath , mergeRequestIid , getDefaultPerPage ()).all ());
336336 }
337337
@@ -349,7 +349,7 @@ public List<Commit> getCommits(Object projectIdOrPath, int mergeRequestIid) thro
349349 * @return a list containing the commits for the specified merge request
350350 * @throws GitLabApiException GitLabApiException if any exception occurs during execution
351351 */
352- public List <Commit > getCommits (Object projectIdOrPath , int mergeRequestIid , int page , int perPage ) throws GitLabApiException {
352+ public List <Commit > getCommits (Object projectIdOrPath , Long mergeRequestIid , int page , int perPage ) throws GitLabApiException {
353353 Form formData = new GitLabApiForm ().withParam ("owned" , true ).withParam (PAGE_PARAM , page ).withParam (PER_PAGE_PARAM , perPage );
354354 Response response = get (Response .Status .OK , formData .asMap (), "projects" , getProjectIdOrPath (projectIdOrPath ), "merge_requests" , mergeRequestIid , "commits" );
355355 return (response .readEntity (new GenericType <List <Commit >>() {}));
@@ -368,7 +368,7 @@ public List<Commit> getCommits(Object projectIdOrPath, int mergeRequestIid, int
368368 * @return a Pager containing the commits for the specified merge request
369369 * @throws GitLabApiException GitLabApiException if any exception occurs during execution
370370 */
371- public Pager <Commit > getCommits (Object projectIdOrPath , int mergeRequestIid , int itemsPerPage ) throws GitLabApiException {
371+ public Pager <Commit > getCommits (Object projectIdOrPath , Long mergeRequestIid , int itemsPerPage ) throws GitLabApiException {
372372 return (new Pager <Commit >(this , Commit .class , itemsPerPage , null ,
373373 "projects" , getProjectIdOrPath (projectIdOrPath ), "merge_requests" , mergeRequestIid , "commits" ));
374374 }
@@ -385,7 +385,7 @@ public Pager<Commit> getCommits(Object projectIdOrPath, int mergeRequestIid, int
385385 * @return a Stream containing the commits for the specified merge request
386386 * @throws GitLabApiException GitLabApiException if any exception occurs during execution
387387 */
388- public Stream <Commit > getCommitsStream (Object projectIdOrPath , int mergeRequestIid ) throws GitLabApiException {
388+ public Stream <Commit > getCommitsStream (Object projectIdOrPath , Long mergeRequestIid ) throws GitLabApiException {
389389 return (getCommits (projectIdOrPath , mergeRequestIid , getDefaultPerPage ()).stream ());
390390 }
391391
0 commit comments