Skip to content

Commit 04a59c5

Browse files
committed
Fixed Javadoc warnings (#127).
1 parent 62f4e18 commit 04a59c5

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,8 +1003,9 @@ public UserApi getUserApi() {
10031003
/**
10041004
* Create and return an Optional instance associated with a GitLabApiException.
10051005
*
1006-
* @param optional the Optional instance to use as the key for the exception
1007-
* @param glae the GitLabApiException that was the result of a call to the GitLab API
1006+
* @param <T> the type for the Optional parameter
1007+
* @param glae the GitLabApiException that was the result of a call to the GitLab API
1008+
* @return the created Optional instance
10081009
*/
10091010
protected static final <T> Optional<T> createOptionalFromException(GitLabApiException glae) {
10101011
Optional<T> optional = Optional.empty();
@@ -1028,6 +1029,7 @@ public static final GitLabApiException getOptionalException(Optional<?> optional
10281029
* Return the Optional instances contained value, if present, otherwise throw the exception that is
10291030
* associated with the Optional instance.
10301031
*
1032+
* @param <T> the type for the Optional parameter
10311033
* @param optional the Optional instance to get the value for
10321034
* @return the value of the Optional instance if no exception is associated with it
10331035
* @throws GitLabApiException if there was an exception associated with the Optional instance

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ public Member getMember(int groupId, int userId) throws GitLabApiException {
580580
* @param userId the member ID of the member to get
581581
* @return a member viewable by the authenticated user as an Optional instance
582582
*/
583-
public Optional<Member> getOptionalMember(int groupId, int userId) throws GitLabApiException {
583+
public Optional<Member> getOptionalMember(int groupId, int userId) {
584584
try {
585585
return (Optional.ofNullable(getMember(groupId, userId)));
586586
} catch (GitLabApiException glae) {

src/test/java/org/gitlab4j/api/TestGitLabLogin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void beforeMethod() {
8888
assumeTrue(problems != null && problems.isEmpty());
8989
}
9090

91-
@SuppressWarnings("deprecation")
91+
@SuppressWarnings({ "deprecation" })
9292
@Test
9393
public void testSession() throws GitLabApiException {
9494

0 commit comments

Comments
 (0)