We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I am ready to use “getBranches”,my program falls into endless loop. My apiNamespace is "/api/v3".
GitlabAPI gitlabAPI = GitlabAPI.connect(hostUrl,apiToken, TokenType.PRIVATE_TOKEN, AuthMethod.HEADER, "/api/v3");
Here are the “getBranches” details
public List<GitlabBranch> getBranches(Serializable projectId) { String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabBranch.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabBranch[].class); }
|| \||/
public <T> List<T> getAll(final String tailUrl, final Class<T[]> type) { List<T> results = new ArrayList<>(); Iterator<T[]> iterator = asIterator(tailUrl, type); while (iterator.hasNext()) { T[] requests = iterator.next(); if (requests.length > 0) { results.addAll(Arrays.asList(requests)); } } return results; }
Can't jump out of the while loop
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I am ready to use “getBranches”,my program falls into endless loop. My apiNamespace is "/api/v3".
Here are the “getBranches” details
Can't jump out of the while loop
The text was updated successfully, but these errors were encountered: