Skip to content

Commit 60879e8

Browse files
committed
Added @return to forkProject() methods (#106).
1 parent 34ba7e1 commit 60879e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ public void deleteProject(Project project) throws GitLabApiException {
839839
*
840840
* @param id the ID of the project to fork
841841
* @param namespace path of the namespace that the project will be forked to
842+
* @return the newly forked Project instance
842843
* @throws GitLabApiException if any exception occurs
843844
*/
844845
public Project forkProject(Integer id, String namespace) throws GitLabApiException {
@@ -857,6 +858,7 @@ public Project forkProject(Integer id, String namespace) throws GitLabApiExcepti
857858
*
858859
* @param project the project to fork
859860
* @param namespace path of the namespace that the project will be forked to
861+
* @return the newly forked Project instance
860862
* @throws GitLabApiException if any exception occurs
861863
*/
862864
public Project forkProject(Project project, String namespace) throws GitLabApiException {
@@ -872,6 +874,7 @@ public Project forkProject(Project project, String namespace) throws GitLabApiEx
872874
*
873875
* @param id the ID of the project to fork
874876
* @param namespaceId ID of the namespace that the project will be forked to
877+
* @return the newly forked Project instance
875878
* @throws GitLabApiException if any exception occurs
876879
*/
877880
public Project forkProject(Integer id, Integer namespaceId) throws GitLabApiException {
@@ -890,6 +893,7 @@ public Project forkProject(Integer id, Integer namespaceId) throws GitLabApiExce
890893
*
891894
* @param project the project to fork
892895
* @param namespaceId ID of the namespace that the project will be forked to
896+
* @return the newly forked Project instance
893897
* @throws GitLabApiException if any exception occurs
894898
*/
895899
public Project forkProject(Project project, Integer namespaceId) throws GitLabApiException {

0 commit comments

Comments
 (0)