Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
04a59c57
Commit
04a59c57
authored
Jan 27, 2018
by
Greg Messner
Browse files
Fixed Javadoc warnings (#127).
parent
62f4e185
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/GitLabApi.java
View file @
04a59c57
...
@@ -1003,8 +1003,9 @@ public class GitLabApi {
...
@@ -1003,8 +1003,9 @@ public class GitLabApi {
/**
/**
* Create and return an Optional instance associated with a GitLabApiException.
* Create and return an Optional instance associated with a GitLabApiException.
*
*
* @param optional the Optional instance to use as the key for the exception
* @param <T> the type for the Optional parameter
* @param glae the GitLabApiException that was the result of a call to the GitLab API
* @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
)
{
protected
static
final
<
T
>
Optional
<
T
>
createOptionalFromException
(
GitLabApiException
glae
)
{
Optional
<
T
>
optional
=
Optional
.
empty
();
Optional
<
T
>
optional
=
Optional
.
empty
();
...
@@ -1028,6 +1029,7 @@ public class GitLabApi {
...
@@ -1028,6 +1029,7 @@ public class GitLabApi {
* Return the Optional instances contained value, if present, otherwise throw the exception that is
* Return the Optional instances contained value, if present, otherwise throw the exception that is
* associated with the Optional instance.
* associated with the Optional instance.
*
*
* @param <T> the type for the Optional parameter
* @param optional the Optional instance to get the value for
* @param optional the Optional instance to get the value for
* @return the value of the Optional instance if no exception is associated with it
* @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
* @throws GitLabApiException if there was an exception associated with the Optional instance
...
...
src/main/java/org/gitlab4j/api/GroupApi.java
View file @
04a59c57
...
@@ -580,7 +580,7 @@ public class GroupApi extends AbstractApi {
...
@@ -580,7 +580,7 @@ public class GroupApi extends AbstractApi {
* @param userId the member ID of the member to get
* @param userId the member ID of the member to get
* @return a member viewable by the authenticated user as an Optional instance
* @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
{
try
{
return
(
Optional
.
ofNullable
(
getMember
(
groupId
,
userId
)));
return
(
Optional
.
ofNullable
(
getMember
(
groupId
,
userId
)));
}
catch
(
GitLabApiException
glae
)
{
}
catch
(
GitLabApiException
glae
)
{
...
...
src/test/java/org/gitlab4j/api/TestGitLabLogin.java
View file @
04a59c57
...
@@ -88,7 +88,7 @@ public class TestGitLabLogin {
...
@@ -88,7 +88,7 @@ public class TestGitLabLogin {
assumeTrue
(
problems
!=
null
&&
problems
.
isEmpty
());
assumeTrue
(
problems
!=
null
&&
problems
.
isEmpty
());
}
}
@SuppressWarnings
(
"deprecation"
)
@SuppressWarnings
(
{
"deprecation"
}
)
@Test
@Test
public
void
testSession
()
throws
GitLabApiException
{
public
void
testSession
()
throws
GitLabApiException
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment