Skip to content

Commit f3c56bf

Browse files
committed
Improve javadoc, use complete parameter name
1 parent 7178690 commit f3c56bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/kohsuke/github/GHRepository.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,15 +1025,15 @@ public Set<String> getCollaboratorNames(CollaboratorAffiliation affiliation) thr
10251025
/**
10261026
* Checks if the given user is a collaborator for this repository.
10271027
*
1028-
* @param u
1029-
* the u
1030-
* @return the boolean
1028+
* @param user
1029+
* a {@link GHUser}
1030+
* @return true if the user is a collaborator for this repository
10311031
* @throws IOException
10321032
* the io exception
10331033
*/
1034-
public boolean isCollaborator(GHUser u) throws IOException {
1034+
public boolean isCollaborator(GHUser user) throws IOException {
10351035
return root().createRequest()
1036-
.withUrlPath(getApiTailUrl("collaborators/" + u.getLogin()))
1036+
.withUrlPath(getApiTailUrl("collaborators/" + user.getLogin()))
10371037
.fetchHttpStatusCode() == 204;
10381038
}
10391039

0 commit comments

Comments
 (0)