Skip to content

Commit 24fbb5b

Browse files
committed
Fixed RefType issue.
1 parent e2ee6fe commit 24fbb5b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/gitlab4j/api/CommitsApi.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.gitlab4j.api.models.CommitAction;
66
import org.gitlab4j.api.models.CommitPayload;
77
import org.gitlab4j.api.models.CommitRef;
8+
import org.gitlab4j.api.models.CommitRef.RefType;
89
import org.gitlab4j.api.models.Diff;
910
import org.gitlab4j.api.utils.ISO8601;
1011

@@ -17,8 +18,6 @@
1718
import java.util.List;
1819
import java.util.Optional;
1920

20-
import static org.gitlab4j.api.models.CommitRef.RefType.all;
21-
2221
/**
2322
* This class implements the client side API for the GitLab commits calls.
2423
*/
@@ -265,7 +264,7 @@ public Optional<Commit> getOptionalCommit(int projectId, String sha) {
265264
* @since Gitlab 10.6
266265
*/
267266
public List<CommitRef> getCommitRefs(int projectId, String sha) throws GitLabApiException {
268-
return getCommitRefs(projectId, sha, all);
267+
return getCommitRefs(projectId, sha, RefType.ALL);
269268
}
270269

271270
/**

0 commit comments

Comments
 (0)