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
1c97d51e
Commit
1c97d51e
authored
Jul 15, 2017
by
Greg Messner
Committed by
GitHub
Jul 15, 2017
Browse files
Fixed typo in Pager example.
parent
eb9eb7c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
1c97d51e
...
@@ -64,7 +64,7 @@ while (projectsPager.hasNext())) {
...
@@ -64,7 +64,7 @@ while (projectsPager.hasNext())) {
```
```
```
java
```
java
// Create a Pager instance that will used to build a list containing all the commits for project ID 1234
// Create a Pager instance that will
be
used to build a list containing all the commits for project ID 1234
Pager
<
Commit
>
commitPager
=
gitlabApi
.
getCommitsApi
().
getCommits
(
1234
,
20
);
Pager
<
Commit
>
commitPager
=
gitlabApi
.
getCommitsApi
().
getCommits
(
1234
,
20
);
List
<
Commit
>
allCommits
=
new
ArrayList
<>(
commitPager
.
getTotalItems
());
List
<
Commit
>
allCommits
=
new
ArrayList
<>(
commitPager
.
getTotalItems
());
...
...
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