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
053813a4
Commit
053813a4
authored
Apr 25, 2019
by
Greg Messner
Browse files
Fixed getSnippets() so it properly works with all project specifiers.
parent
f5dd4855
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/ProjectApi.java
View file @
053813a4
...
...
@@ -1917,7 +1917,7 @@ public class ProjectApi extends AbstractApi implements Constants {
* @throws GitLabApiException if any exception occurs
*/
public
Pager
<
Snippet
>
getSnippets
(
Object
projectIdOrPath
,
int
itemsPerPage
)
throws
GitLabApiException
{
return
(
new
Pager
<
Snippet
>(
this
,
Snippet
.
class
,
itemsPerPage
,
null
,
"projects"
,
projectIdOrPath
,
"snippets"
));
return
(
new
Pager
<
Snippet
>(
this
,
Snippet
.
class
,
itemsPerPage
,
null
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
)
,
"snippets"
));
}
/**
...
...
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