Commit 04a59c57 authored by Greg Messner's avatar Greg Messner
Browse files

Fixed Javadoc warnings (#127).

parent 62f4e185
......@@ -1003,8 +1003,9 @@ public class GitLabApi {
/**
* Create and return an Optional instance associated with a GitLabApiException.
*
* @param optional the Optional instance to use as the key for the exception
* @param glae the GitLabApiException that was the result of a call to the GitLab API
* @param <T> the type for the Optional parameter
* @param glae the GitLabApiException that was the result of a call to the GitLab API
* @return the created Optional instance
*/
protected static final <T> Optional<T> createOptionalFromException(GitLabApiException glae) {
Optional<T> optional = Optional.empty();
......@@ -1028,6 +1029,7 @@ public class GitLabApi {
* Return the Optional instances contained value, if present, otherwise throw the exception that is
* associated with the Optional instance.
*
* @param <T> the type for the Optional parameter
* @param optional the Optional instance to get the value for
* @return the value of the Optional instance if no exception is associated with it
* @throws GitLabApiException if there was an exception associated with the Optional instance
......
......@@ -580,7 +580,7 @@ public class GroupApi extends AbstractApi {
* @param userId the member ID of the member to get
* @return a member viewable by the authenticated user as an Optional instance
*/
public Optional<Member> getOptionalMember(int groupId, int userId) throws GitLabApiException {
public Optional<Member> getOptionalMember(int groupId, int userId) {
try {
return (Optional.ofNullable(getMember(groupId, userId)));
} catch (GitLabApiException glae) {
......
......@@ -88,7 +88,7 @@ public class TestGitLabLogin {
assumeTrue(problems != null && problems.isEmpty());
}
@SuppressWarnings("deprecation")
@SuppressWarnings({ "deprecation" })
@Test
public void testSession() throws GitLabApiException {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment