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
a6543081
Commit
a6543081
authored
Aug 13, 2018
by
Greg Messner
Browse files
Removed throws clause fro getOptionalMember() (#232).
parent
f9155e05
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/ProjectApi.java
View file @
a6543081
...
@@ -1127,9 +1127,8 @@ public class ProjectApi extends AbstractApi implements Constants {
...
@@ -1127,9 +1127,8 @@ public class ProjectApi extends AbstractApi implements Constants {
* @param projectId the project ID to get team member for
* @param projectId the project ID to get team member for
* @param userId the user ID of the member
* @param userId the user ID of the member
* @return the member specified by the project ID/user ID pair
* @return the member specified by the project ID/user ID pair
* @throws GitLabApiException if any exception occurs
*/
*/
public
Optional
<
Member
>
getOptionalMember
(
Integer
projectId
,
Integer
userId
)
throws
GitLabApiException
{
public
Optional
<
Member
>
getOptionalMember
(
Integer
projectId
,
Integer
userId
)
{
try
{
try
{
return
(
Optional
.
ofNullable
(
getMember
(
projectId
,
userId
)));
return
(
Optional
.
ofNullable
(
getMember
(
projectId
,
userId
)));
}
catch
(
GitLabApiException
glae
)
{
}
catch
(
GitLabApiException
glae
)
{
...
...
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