From 5f23654c151a10749ecb35a26b2e1128ea4d7c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bresson?= Date: Thu, 9 Nov 2023 13:22:44 +0100 Subject: [PATCH] Remove deprecated "getNotes" methods (#1032) --- src/main/java/org/gitlab4j/api/NotesApi.java | 51 -------------------- 1 file changed, 51 deletions(-) diff --git a/src/main/java/org/gitlab4j/api/NotesApi.java b/src/main/java/org/gitlab4j/api/NotesApi.java index 22ab3c25..c2272954 100644 --- a/src/main/java/org/gitlab4j/api/NotesApi.java +++ b/src/main/java/org/gitlab4j/api/NotesApi.java @@ -15,57 +15,6 @@ public class NotesApi extends AbstractApi { super(gitLabApi); } - /** - * Get a list of the issues's notes. - * - *
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
- * - * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance - * @param issueIid the issue ID to get the notes for - * @return a list of the issues's notes - * @throws GitLabApiException if any exception occurs - * @deprecated As of release 4.7.0, replaced by {@link #getIssueNotes(Object, Long)} - */ - @Deprecated - public List getNotes(Object projectIdOrPath, Long issueIid) throws GitLabApiException { - return (getIssueNotes(projectIdOrPath, issueIid)); - } - - /** - * Get a list of the issue's notes using the specified page and per page settings. - * - *
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
- * - * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance - * @param issueIid the issue IID to get the notes for - * @param page the page to get - * @param perPage the number of notes per page - * @return the list of notes in the specified range - * @throws GitLabApiException if any exception occurs - * @deprecated As of release 4.7.0, replaced by {@link #getIssueNotes(Object, Long, int, int)} - */ - @Deprecated - public List getNotes(Object projectIdOrPath, Long issueIid, int page, int perPage) throws GitLabApiException { - return (getIssueNotes(projectIdOrPath, issueIid, page, perPage)); - } - - /** - * Get a Pager of issues's notes. - * - *
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/notes
- * - * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance - * @param issueIid the issue IID to get the notes for - * @param itemsPerPage the number of notes per page - * @return the list of notes in the specified range - * @throws GitLabApiException if any exception occurs - * @deprecated As of release 4.7.0, replaced by {@link #getIssueNotes(Object, Long, int)} - */ - @Deprecated - public Pager getNotes(Object projectIdOrPath, Long issueIid, int itemsPerPage) throws GitLabApiException { - return (getIssueNotes(projectIdOrPath, issueIid, itemsPerPage)); - } - /** * Get a list of the issues's notes. * -- GitLab