Remove unneeded exception declarations on methods in NotImplemented
Change-Id: I66605f6022107ccea9e9759b37d2ce7f60725f45
Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/AccountApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/AccountApi.java
index 63ac914..9df0236 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/AccountApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/AccountApi.java
@@ -85,150 +85,144 @@
**/
class NotImplemented implements AccountApi {
@Override
- public AccountInfo get() throws RestApiException {
+ public AccountInfo get() {
throw new NotImplementedException();
}
@Override
- public boolean getActive() throws RestApiException {
+ public boolean getActive() {
throw new NotImplementedException();
}
@Override
- public void setActive(boolean active) throws RestApiException {
+ public void setActive(boolean active) {
throw new NotImplementedException();
}
@Override
- public String getAvatarUrl(int size) throws RestApiException {
+ public String getAvatarUrl(int size) {
throw new NotImplementedException();
}
@Override
- public GeneralPreferencesInfo getPreferences() throws RestApiException {
+ public GeneralPreferencesInfo getPreferences() {
throw new NotImplementedException();
}
@Override
- public GeneralPreferencesInfo setPreferences(GeneralPreferencesInfo in)
- throws RestApiException {
+ public GeneralPreferencesInfo setPreferences(GeneralPreferencesInfo in) {
throw new NotImplementedException();
}
@Override
- public DiffPreferencesInfo getDiffPreferences() throws RestApiException {
+ public DiffPreferencesInfo getDiffPreferences() {
throw new NotImplementedException();
}
@Override
- public DiffPreferencesInfo setDiffPreferences(DiffPreferencesInfo in)
- throws RestApiException {
+ public DiffPreferencesInfo setDiffPreferences(DiffPreferencesInfo in) {
throw new NotImplementedException();
}
@Override
- public EditPreferencesInfo getEditPreferences() throws RestApiException {
+ public EditPreferencesInfo getEditPreferences() {
throw new NotImplementedException();
}
@Override
- public EditPreferencesInfo setEditPreferences(EditPreferencesInfo in)
- throws RestApiException {
+ public EditPreferencesInfo setEditPreferences(EditPreferencesInfo in) {
throw new NotImplementedException();
}
@Override
- public List<ProjectWatchInfo> getWatchedProjects()
- throws RestApiException {
+ public List<ProjectWatchInfo> getWatchedProjects() {
throw new NotImplementedException();
}
@Override
public List<ProjectWatchInfo> setWatchedProjects(
- List<ProjectWatchInfo> in) throws RestApiException {
+ List<ProjectWatchInfo> in) {
throw new NotImplementedException();
}
@Override
- public void deleteWatchedProjects(List<ProjectWatchInfo> in)
- throws RestApiException {
+ public void deleteWatchedProjects(List<ProjectWatchInfo> in) {
throw new NotImplementedException();
}
@Override
- public void starChange(String changeId) throws RestApiException {
+ public void starChange(String changeId) {
throw new NotImplementedException();
}
@Override
- public void unstarChange(String changeId) throws RestApiException {
+ public void unstarChange(String changeId) {
throw new NotImplementedException();
}
@Override
- public void setStars(String changeId, StarsInput input)
- throws RestApiException {
+ public void setStars(String changeId, StarsInput input) {
throw new NotImplementedException();
}
@Override
- public SortedSet<String> getStars(String changeId) throws RestApiException {
+ public SortedSet<String> getStars(String changeId) {
throw new NotImplementedException();
}
@Override
- public List<ChangeInfo> getStarredChanges() throws RestApiException {
+ public List<ChangeInfo> getStarredChanges() {
throw new NotImplementedException();
}
@Override
- public void addEmail(EmailInput input) throws RestApiException {
+ public void addEmail(EmailInput input) {
throw new NotImplementedException();
}
@Override
- public List<SshKeyInfo> listSshKeys() throws RestApiException {
+ public List<SshKeyInfo> listSshKeys() {
throw new NotImplementedException();
}
@Override
- public SshKeyInfo addSshKey(String key) throws RestApiException {
+ public SshKeyInfo addSshKey(String key) {
throw new NotImplementedException();
}
@Override
- public void deleteSshKey(int seq) throws RestApiException {
+ public void deleteSshKey(int seq) {
throw new NotImplementedException();
}
@Override
public Map<String, GpgKeyInfo> putGpgKeys(List<String> add,
- List<String> remove) throws RestApiException {
+ List<String> remove) {
throw new NotImplementedException();
}
@Override
- public GpgKeyApi gpgKey(String id) throws RestApiException {
+ public GpgKeyApi gpgKey(String id) {
throw new NotImplementedException();
}
@Override
- public Map<String, GpgKeyInfo> listGpgKeys() throws RestApiException {
+ public Map<String, GpgKeyInfo> listGpgKeys() {
throw new NotImplementedException();
}
@Override
- public List<AgreementInfo> listAgreements() throws RestApiException {
+ public List<AgreementInfo> listAgreements() {
throw new NotImplementedException();
}
@Override
- public void signAgreement(String agreementName) throws RestApiException {
+ public void signAgreement(String agreementName) {
throw new NotImplementedException();
}
@Override
- public void index() throws RestApiException {
+ public void index() {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/Accounts.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/Accounts.java
index a697091..3f300e3 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/Accounts.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/Accounts.java
@@ -224,48 +224,47 @@
**/
class NotImplemented implements Accounts {
@Override
- public AccountApi id(String id) throws RestApiException {
+ public AccountApi id(String id) {
throw new NotImplementedException();
}
@Override
- public AccountApi id(int id) throws RestApiException {
+ public AccountApi id(int id) {
throw new NotImplementedException();
}
@Override
- public AccountApi self() throws RestApiException {
+ public AccountApi self() {
throw new NotImplementedException();
}
@Override
- public AccountApi create(String username) throws RestApiException {
+ public AccountApi create(String username) {
throw new NotImplementedException();
}
@Override
- public AccountApi create(AccountInput input) throws RestApiException {
+ public AccountApi create(AccountInput input) {
throw new NotImplementedException();
}
@Override
- public SuggestAccountsRequest suggestAccounts() throws RestApiException {
+ public SuggestAccountsRequest suggestAccounts() {
throw new NotImplementedException();
}
@Override
- public SuggestAccountsRequest suggestAccounts(String query)
- throws RestApiException {
+ public SuggestAccountsRequest suggestAccounts(String query) {
throw new NotImplementedException();
}
@Override
- public QueryRequest query() throws RestApiException {
+ public QueryRequest query() {
throw new NotImplementedException();
}
@Override
- public QueryRequest query(String query) throws RestApiException {
+ public QueryRequest query(String query) {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/GpgKeyApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/GpgKeyApi.java
index 6f87e8b..9bea6f9 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/GpgKeyApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/accounts/GpgKeyApi.java
@@ -28,12 +28,12 @@
*/
class NotImplemented implements GpgKeyApi {
@Override
- public GpgKeyInfo get() throws RestApiException {
+ public GpgKeyInfo get() {
throw new NotImplementedException();
}
@Override
- public void delete() throws RestApiException {
+ public void delete() {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/ChangeApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/ChangeApi.java
index 8573c63..b8a20975 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/ChangeApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/ChangeApi.java
@@ -237,208 +237,205 @@
}
@Override
- public RevisionApi current() throws RestApiException {
+ public RevisionApi current() {
throw new NotImplementedException();
}
@Override
- public RevisionApi revision(int id) throws RestApiException {
+ public RevisionApi revision(int id) {
throw new NotImplementedException();
}
@Override
- public ReviewerApi reviewer(String id) throws RestApiException {
+ public ReviewerApi reviewer(String id) {
throw new NotImplementedException();
}
@Override
- public RevisionApi revision(String id) throws RestApiException {
+ public RevisionApi revision(String id) {
throw new NotImplementedException();
}
@Override
- public void abandon() throws RestApiException {
+ public void abandon() {
throw new NotImplementedException();
}
@Override
- public void abandon(AbandonInput in) throws RestApiException {
+ public void abandon(AbandonInput in) {
throw new NotImplementedException();
}
@Override
- public void restore() throws RestApiException {
+ public void restore() {
throw new NotImplementedException();
}
@Override
- public void restore(RestoreInput in) throws RestApiException {
+ public void restore(RestoreInput in) {
throw new NotImplementedException();
}
@Override
- public void move(String destination) throws RestApiException {
+ public void move(String destination) {
throw new NotImplementedException();
}
@Override
- public void move(MoveInput in) throws RestApiException {
+ public void move(MoveInput in) {
throw new NotImplementedException();
}
@Override
- public ChangeApi revert() throws RestApiException {
+ public ChangeApi revert() {
throw new NotImplementedException();
}
@Override
- public ChangeApi revert(RevertInput in) throws RestApiException {
+ public ChangeApi revert(RevertInput in) {
throw new NotImplementedException();
}
@Override
- public void publish() throws RestApiException {
+ public void publish() {
throw new NotImplementedException();
}
@Override
- public void delete() throws RestApiException {
+ public void delete() {
throw new NotImplementedException();
}
@Override
- public String topic() throws RestApiException {
+ public String topic() {
throw new NotImplementedException();
}
@Override
- public void topic(String topic) throws RestApiException {
+ public void topic(String topic) {
throw new NotImplementedException();
}
@Override
- public void addReviewer(AddReviewerInput in) throws RestApiException {
+ public void addReviewer(AddReviewerInput in) {
throw new NotImplementedException();
}
@Override
- public void addReviewer(String in) throws RestApiException {
+ public void addReviewer(String in) {
throw new NotImplementedException();
}
@Override
- public SuggestedReviewersRequest suggestReviewers() throws RestApiException {
+ public SuggestedReviewersRequest suggestReviewers() {
throw new NotImplementedException();
}
@Override
- public SuggestedReviewersRequest suggestReviewers(String query) throws RestApiException {
+ public SuggestedReviewersRequest suggestReviewers(String query) {
throw new NotImplementedException();
}
@Override
- public ChangeInfo get(EnumSet<ListChangesOption> options) throws RestApiException {
+ public ChangeInfo get(EnumSet<ListChangesOption> options) {
throw new NotImplementedException();
}
@Override
- public ChangeInfo get() throws RestApiException {
+ public ChangeInfo get() {
throw new NotImplementedException();
}
@Override
- public ChangeInfo info() throws RestApiException {
+ public ChangeInfo info() {
throw new NotImplementedException();
}
@Override
- public EditInfo getEdit() throws RestApiException {
+ public EditInfo getEdit() {
throw new NotImplementedException();
}
@Override
- public void setHashtags(HashtagsInput input) throws RestApiException {
+ public void setHashtags(HashtagsInput input) {
throw new NotImplementedException();
}
@Override
- public Set<String> getHashtags() throws RestApiException {
+ public Set<String> getHashtags() {
throw new NotImplementedException();
}
@Override
- public AccountInfo setAssignee(AssigneeInput input)
- throws RestApiException {
+ public AccountInfo setAssignee(AssigneeInput input) {
throw new NotImplementedException();
}
@Override
- public AccountInfo getAssignee() throws RestApiException {
+ public AccountInfo getAssignee() {
throw new NotImplementedException();
}
@Override
- public List<AccountInfo> getPastAssignees() throws RestApiException {
+ public List<AccountInfo> getPastAssignees() {
throw new NotImplementedException();
}
@Override
- public AccountInfo deleteAssignee() throws RestApiException {
+ public AccountInfo deleteAssignee() {
throw new NotImplementedException();
}
@Override
- public Map<String, List<CommentInfo>> comments() throws RestApiException {
+ public Map<String, List<CommentInfo>> comments() {
throw new NotImplementedException();
}
@Override
- public Map<String, List<RobotCommentInfo>> robotComments()
- throws RestApiException {
+ public Map<String, List<RobotCommentInfo>> robotComments() {
throw new NotImplementedException();
}
@Override
- public Map<String, List<CommentInfo>> drafts() throws RestApiException {
+ public Map<String, List<CommentInfo>> drafts() {
throw new NotImplementedException();
}
@Override
- public ChangeInfo check() throws RestApiException {
+ public ChangeInfo check() {
throw new NotImplementedException();
}
@Override
- public ChangeInfo check(FixInput fix) throws RestApiException {
+ public ChangeInfo check(FixInput fix) {
throw new NotImplementedException();
}
@Override
- public void index() throws RestApiException {
+ public void index() {
throw new NotImplementedException();
}
@Override
- public List<ChangeInfo> submittedTogether() throws RestApiException {
+ public List<ChangeInfo> submittedTogether() {
throw new NotImplementedException();
}
@Override
public SubmittedTogetherInfo submittedTogether(
- EnumSet<SubmittedTogetherOption> options) throws RestApiException {
+ EnumSet<SubmittedTogetherOption> options) {
throw new NotImplementedException();
}
@Override
public SubmittedTogetherInfo submittedTogether(
EnumSet<ListChangesOption> a,
- EnumSet<SubmittedTogetherOption> b) throws RestApiException {
+ EnumSet<SubmittedTogetherOption> b) {
throw new NotImplementedException();
}
@Override
- public ChangeInfo createMergePatchSet(MergePatchSetInput in)
- throws RestApiException {
+ public ChangeInfo createMergePatchSet(MergePatchSetInput in) {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/Changes.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/Changes.java
index aa67473..f0d3bfa 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/Changes.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/Changes.java
@@ -142,22 +142,22 @@
**/
class NotImplemented implements Changes {
@Override
- public ChangeApi id(int id) throws RestApiException {
+ public ChangeApi id(int id) {
throw new NotImplementedException();
}
@Override
- public ChangeApi id(String triplet) throws RestApiException {
+ public ChangeApi id(String triplet) {
throw new NotImplementedException();
}
@Override
- public ChangeApi id(String project, String branch, String id) throws RestApiException {
+ public ChangeApi id(String project, String branch, String id) {
throw new NotImplementedException();
}
@Override
- public ChangeApi create(ChangeInput in) throws RestApiException {
+ public ChangeApi create(ChangeInput in) {
throw new NotImplementedException();
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/CommentApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/CommentApi.java
index adac284..e4c2781 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/CommentApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/CommentApi.java
@@ -27,7 +27,7 @@
**/
class NotImplemented implements CommentApi {
@Override
- public CommentInfo get() throws RestApiException {
+ public CommentInfo get() {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/DraftApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/DraftApi.java
index 50335db..f4c79bb 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/DraftApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/DraftApi.java
@@ -29,12 +29,12 @@
class NotImplemented extends CommentApi.NotImplemented
implements DraftApi {
@Override
- public CommentInfo update(DraftInput in) throws RestApiException {
+ public CommentInfo update(DraftInput in) {
throw new NotImplementedException();
}
@Override
- public void delete() throws RestApiException {
+ public void delete() {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/FileApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/FileApi.java
index 2536c46..a0ca4d0 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/FileApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/FileApi.java
@@ -96,27 +96,27 @@
**/
class NotImplemented implements FileApi {
@Override
- public BinaryResult content() throws RestApiException {
+ public BinaryResult content() {
throw new NotImplementedException();
}
@Override
- public DiffInfo diff() throws RestApiException {
+ public DiffInfo diff() {
throw new NotImplementedException();
}
@Override
- public DiffInfo diff(String base) throws RestApiException {
+ public DiffInfo diff(String base) {
throw new NotImplementedException();
}
@Override
- public DiffInfo diff(int parent) throws RestApiException {
+ public DiffInfo diff(int parent) {
throw new NotImplementedException();
}
@Override
- public DiffRequest diffRequest() throws RestApiException {
+ public DiffRequest diffRequest() {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/ReviewerApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/ReviewerApi.java
index 79cc12e..10f5bc7 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/ReviewerApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/ReviewerApi.java
@@ -33,27 +33,27 @@
**/
class NotImplemented implements ReviewerApi {
@Override
- public Map<String, Short> votes() throws RestApiException {
+ public Map<String, Short> votes() {
throw new NotImplementedException();
}
@Override
- public void deleteVote(String label) throws RestApiException {
+ public void deleteVote(String label) {
throw new NotImplementedException();
}
@Override
- public void deleteVote(DeleteVoteInput input) throws RestApiException {
+ public void deleteVote(DeleteVoteInput input) {
throw new NotImplementedException();
}
@Override
- public void remove() throws RestApiException {
+ public void remove() {
throw new NotImplementedException();
}
@Override
- public void remove(DeleteReviewerInput input) throws RestApiException {
+ public void remove(DeleteReviewerInput input) {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RevisionApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RevisionApi.java
index 23a0907..a763b77 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RevisionApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RevisionApi.java
@@ -119,42 +119,42 @@
**/
class NotImplemented implements RevisionApi {
@Override
- public void delete() throws RestApiException {
+ public void delete() {
throw new NotImplementedException();
}
@Override
- public void review(ReviewInput in) throws RestApiException {
+ public void review(ReviewInput in) {
throw new NotImplementedException();
}
@Override
- public void submit() throws RestApiException {
+ public void submit() {
throw new NotImplementedException();
}
@Override
- public void submit(SubmitInput in) throws RestApiException {
+ public void submit(SubmitInput in) {
throw new NotImplementedException();
}
@Override
- public void publish() throws RestApiException {
+ public void publish() {
throw new NotImplementedException();
}
@Override
- public ChangeApi cherryPick(CherryPickInput in) throws RestApiException {
+ public ChangeApi cherryPick(CherryPickInput in) {
throw new NotImplementedException();
}
@Override
- public ChangeApi rebase() throws RestApiException {
+ public ChangeApi rebase() {
throw new NotImplementedException();
}
@Override
- public ChangeApi rebase(RebaseInput in) throws RestApiException {
+ public ChangeApi rebase(RebaseInput in) {
throw new NotImplementedException();
}
@@ -164,42 +164,42 @@
}
@Override
- public RevisionReviewerApi reviewer(String id) throws RestApiException {
+ public RevisionReviewerApi reviewer(String id) {
throw new NotImplementedException();
}
@Override
- public void setReviewed(String path, boolean reviewed) throws RestApiException {
+ public void setReviewed(String path, boolean reviewed) {
throw new NotImplementedException();
}
@Override
- public Set<String> reviewed() throws RestApiException {
+ public Set<String> reviewed() {
throw new NotImplementedException();
}
@Override
- public MergeableInfo mergeable() throws RestApiException {
+ public MergeableInfo mergeable() {
throw new NotImplementedException();
}
@Override
- public MergeableInfo mergeableOtherBranches() throws RestApiException {
+ public MergeableInfo mergeableOtherBranches() {
throw new NotImplementedException();
}
@Override
- public Map<String, FileInfo> files(String base) throws RestApiException {
+ public Map<String, FileInfo> files(String base) {
throw new NotImplementedException();
}
@Override
- public Map<String, FileInfo> files(int parentNum) throws RestApiException {
+ public Map<String, FileInfo> files(int parentNum) {
throw new NotImplementedException();
}
@Override
- public Map<String, FileInfo> files() throws RestApiException {
+ public Map<String, FileInfo> files() {
throw new NotImplementedException();
}
@@ -209,110 +209,107 @@
}
@Override
- public Map<String, List<CommentInfo>> comments() throws RestApiException {
+ public Map<String, List<CommentInfo>> comments() {
throw new NotImplementedException();
}
@Override
- public Map<String, List<RobotCommentInfo>> robotComments()
- throws RestApiException {
+ public Map<String, List<RobotCommentInfo>> robotComments() {
throw new NotImplementedException();
}
@Override
- public List<CommentInfo> commentsAsList() throws RestApiException {
+ public List<CommentInfo> commentsAsList() {
throw new NotImplementedException();
}
@Override
- public List<CommentInfo> draftsAsList() throws RestApiException {
+ public List<CommentInfo> draftsAsList() {
throw new NotImplementedException();
}
@Override
- public List<RobotCommentInfo> robotCommentsAsList()
- throws RestApiException {
+ public List<RobotCommentInfo> robotCommentsAsList() {
throw new NotImplementedException();
}
@Override
- public Map<String, List<CommentInfo>> drafts() throws RestApiException {
+ public Map<String, List<CommentInfo>> drafts() {
throw new NotImplementedException();
}
@Override
- public DraftApi createDraft(DraftInput in) throws RestApiException {
+ public DraftApi createDraft(DraftInput in) {
throw new NotImplementedException();
}
@Override
- public DraftApi draft(String id) throws RestApiException {
+ public DraftApi draft(String id) {
throw new NotImplementedException();
}
@Override
- public CommentApi comment(String id) throws RestApiException {
+ public CommentApi comment(String id) {
throw new NotImplementedException();
}
@Override
- public RobotCommentApi robotComment(String id) throws RestApiException {
+ public RobotCommentApi robotComment(String id) {
throw new NotImplementedException();
}
@Override
- public BinaryResult patch() throws RestApiException {
+ public BinaryResult patch() {
throw new NotImplementedException();
}
@Override
- public BinaryResult patch(String path) throws RestApiException {
+ public BinaryResult patch(String path) {
throw new NotImplementedException();
}
@Override
- public Map<String, ActionInfo> actions() throws RestApiException {
+ public Map<String, ActionInfo> actions() {
throw new NotImplementedException();
}
@Override
- public SubmitType submitType() throws RestApiException {
+ public SubmitType submitType() {
throw new NotImplementedException();
}
@Override
- public BinaryResult submitPreview() throws RestApiException {
+ public BinaryResult submitPreview() {
throw new NotImplementedException();
}
@Override
- public BinaryResult submitPreview(String format) throws RestApiException {
+ public BinaryResult submitPreview(String format) {
throw new NotImplementedException();
}
@Override
- public SubmitType testSubmitType(TestSubmitRuleInput in)
- throws RestApiException {
+ public SubmitType testSubmitType(TestSubmitRuleInput in) {
throw new NotImplementedException();
}
@Override
- public MergeListRequest getMergeList() throws RestApiException {
+ public MergeListRequest getMergeList() {
throw new NotImplementedException();
}
@Override
- public void description(String description) throws RestApiException {
+ public void description(String description) {
throw new NotImplementedException();
}
@Override
- public String description() throws RestApiException {
+ public String description() {
throw new NotImplementedException();
}
@Override
- public String etag() throws RestApiException {
+ public String etag() {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RevisionReviewerApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RevisionReviewerApi.java
index 2b857f6..4e13f90 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RevisionReviewerApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RevisionReviewerApi.java
@@ -19,7 +19,6 @@
import java.util.Map;
-
public interface RevisionReviewerApi {
Map<String, Short> votes() throws RestApiException;
@@ -33,17 +32,17 @@
**/
class NotImplemented implements RevisionReviewerApi {
@Override
- public Map<String, Short> votes() throws RestApiException {
+ public Map<String, Short> votes() {
throw new NotImplementedException();
}
@Override
- public void deleteVote(String label) throws RestApiException {
+ public void deleteVote(String label) {
throw new NotImplementedException();
}
@Override
- public void deleteVote(DeleteVoteInput input) throws RestApiException {
+ public void deleteVote(DeleteVoteInput input) {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RobotCommentApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RobotCommentApi.java
index e1ed107..38d9f95 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RobotCommentApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/changes/RobotCommentApi.java
@@ -28,7 +28,7 @@
**/
class NotImplemented implements RobotCommentApi {
@Override
- public RobotCommentInfo get() throws RestApiException {
+ public RobotCommentInfo get() {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/config/Server.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/config/Server.java
index 1e5c95e..aa7ccdd 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/config/Server.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/config/Server.java
@@ -41,36 +41,34 @@
**/
class NotImplemented implements Server {
@Override
- public String getVersion() throws RestApiException {
+ public String getVersion() {
throw new NotImplementedException();
}
@Override
- public ServerInfo getInfo() throws RestApiException {
+ public ServerInfo getInfo() {
throw new NotImplementedException();
}
@Override
- public GeneralPreferencesInfo getDefaultPreferences()
- throws RestApiException {
+ public GeneralPreferencesInfo getDefaultPreferences() {
throw new NotImplementedException();
}
@Override
public GeneralPreferencesInfo setDefaultPreferences(
- GeneralPreferencesInfo in) throws RestApiException {
+ GeneralPreferencesInfo in) {
throw new NotImplementedException();
}
@Override
- public DiffPreferencesInfo getDefaultDiffPreferences()
- throws RestApiException {
+ public DiffPreferencesInfo getDefaultDiffPreferences() {
throw new NotImplementedException();
}
@Override
- public DiffPreferencesInfo setDefaultDiffPreferences(DiffPreferencesInfo in)
- throws RestApiException {
+ public DiffPreferencesInfo setDefaultDiffPreferences(
+ DiffPreferencesInfo in) {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/groups/GroupApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/groups/GroupApi.java
index d3f4463..3b9c1c0 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/groups/GroupApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/groups/GroupApi.java
@@ -149,57 +149,57 @@
**/
class NotImplemented implements GroupApi {
@Override
- public GroupInfo get() throws RestApiException {
+ public GroupInfo get() {
throw new NotImplementedException();
}
@Override
- public GroupInfo detail() throws RestApiException {
+ public GroupInfo detail() {
throw new NotImplementedException();
}
@Override
- public String name() throws RestApiException {
+ public String name() {
throw new NotImplementedException();
}
@Override
- public void name(String name) throws RestApiException {
+ public void name(String name) {
throw new NotImplementedException();
}
@Override
- public GroupInfo owner() throws RestApiException {
+ public GroupInfo owner() {
throw new NotImplementedException();
}
@Override
- public void owner(String owner) throws RestApiException {
+ public void owner(String owner) {
throw new NotImplementedException();
}
@Override
- public String description() throws RestApiException {
+ public String description() {
throw new NotImplementedException();
}
@Override
- public void description(String description) throws RestApiException {
+ public void description(String description) {
throw new NotImplementedException();
}
@Override
- public GroupOptionsInfo options() throws RestApiException {
+ public GroupOptionsInfo options() {
throw new NotImplementedException();
}
@Override
- public void options(GroupOptionsInfo options) throws RestApiException {
+ public void options(GroupOptionsInfo options) {
throw new NotImplementedException();
}
@Override
- public List<AccountInfo> members() throws RestApiException {
+ public List<AccountInfo> members() {
throw new NotImplementedException();
}
@@ -210,27 +210,27 @@
}
@Override
- public void addMembers(String... members) throws RestApiException {
+ public void addMembers(String... members) {
throw new NotImplementedException();
}
@Override
- public void removeMembers(String... members) throws RestApiException {
+ public void removeMembers(String... members) {
throw new NotImplementedException();
}
@Override
- public List<GroupInfo> includedGroups() throws RestApiException {
+ public List<GroupInfo> includedGroups() {
throw new NotImplementedException();
}
@Override
- public void addGroups(String... groups) throws RestApiException {
+ public void addGroups(String... groups) {
throw new NotImplementedException();
}
@Override
- public void removeGroups(String... groups) throws RestApiException {
+ public void removeGroups(String... groups) {
throw new NotImplementedException();
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/groups/Groups.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/groups/Groups.java
index b58009d..951b526 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/groups/Groups.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/groups/Groups.java
@@ -187,17 +187,17 @@
**/
class NotImplemented implements Groups {
@Override
- public GroupApi id(String id) throws RestApiException {
+ public GroupApi id(String id) {
throw new NotImplementedException();
}
@Override
- public GroupApi create(String name) throws RestApiException {
+ public GroupApi create(String name) {
throw new NotImplementedException();
}
@Override
- public GroupApi create(GroupInput input) throws RestApiException {
+ public GroupApi create(GroupInput input) {
throw new NotImplementedException();
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/BranchApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/BranchApi.java
index 222248d..5c31437 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/BranchApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/BranchApi.java
@@ -36,22 +36,22 @@
**/
class NotImplemented implements BranchApi {
@Override
- public BranchApi create(BranchInput in) throws RestApiException {
+ public BranchApi create(BranchInput in) {
throw new NotImplementedException();
}
@Override
- public BranchInfo get() throws RestApiException {
+ public BranchInfo get() {
throw new NotImplementedException();
}
@Override
- public void delete() throws RestApiException {
+ public void delete() {
throw new NotImplementedException();
}
@Override
- public BinaryResult file(String path) throws RestApiException {
+ public BinaryResult file(String path) {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/ChildProjectApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/ChildProjectApi.java
index 3bffac0..574cb3a 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/ChildProjectApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/ChildProjectApi.java
@@ -28,12 +28,12 @@
**/
class NotImplemented implements ChildProjectApi {
@Override
- public ProjectInfo get() throws RestApiException {
+ public ProjectInfo get() {
throw new NotImplementedException();
}
@Override
- public ProjectInfo get(boolean recursive) throws RestApiException {
+ public ProjectInfo get(boolean recursive) {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/ProjectApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/ProjectApi.java
index 99450de..dd3d61e 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/ProjectApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/ProjectApi.java
@@ -121,49 +121,47 @@
**/
class NotImplemented implements ProjectApi {
@Override
- public ProjectApi create() throws RestApiException {
+ public ProjectApi create() {
throw new NotImplementedException();
}
@Override
- public ProjectApi create(ProjectInput in) throws RestApiException {
+ public ProjectApi create(ProjectInput in) {
throw new NotImplementedException();
}
@Override
- public ProjectInfo get() throws RestApiException {
+ public ProjectInfo get() {
throw new NotImplementedException();
}
@Override
- public String description() throws RestApiException {
+ public String description() {
throw new NotImplementedException();
}
@Override
- public ProjectAccessInfo access() throws RestApiException {
+ public ProjectAccessInfo access() {
throw new NotImplementedException();
}
@Override
- public ConfigInfo config() throws RestApiException {
+ public ConfigInfo config() {
throw new NotImplementedException();
}
@Override
- public ConfigInfo config(ConfigInput in) throws RestApiException {
+ public ConfigInfo config(ConfigInput in) {
throw new NotImplementedException();
}
@Override
- public ProjectAccessInfo access(ProjectAccessInput p)
- throws RestApiException {
+ public ProjectAccessInfo access(ProjectAccessInput p) {
throw new NotImplementedException();
}
@Override
- public void description(DescriptionInput in)
- throws RestApiException {
+ public void description(DescriptionInput in) {
throw new NotImplementedException();
}
@@ -183,32 +181,32 @@
}
@Override
- public List<ProjectInfo> children(boolean recursive) throws RestApiException {
+ public List<ProjectInfo> children(boolean recursive) {
throw new NotImplementedException();
}
@Override
- public ChildProjectApi child(String name) throws RestApiException {
+ public ChildProjectApi child(String name) {
throw new NotImplementedException();
}
@Override
- public BranchApi branch(String ref) throws RestApiException {
+ public BranchApi branch(String ref) {
throw new NotImplementedException();
}
@Override
- public TagApi tag(String ref) throws RestApiException {
+ public TagApi tag(String ref) {
throw new NotImplementedException();
}
@Override
- public void deleteBranches(DeleteBranchesInput in) throws RestApiException {
+ public void deleteBranches(DeleteBranchesInput in) {
throw new NotImplementedException();
}
@Override
- public void deleteTags(DeleteTagsInput in) throws RestApiException {
+ public void deleteTags(DeleteTagsInput in) {
throw new NotImplementedException();
}
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/Projects.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/Projects.java
index fdbadb2..7992348 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/Projects.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/Projects.java
@@ -177,17 +177,17 @@
**/
class NotImplemented implements Projects {
@Override
- public ProjectApi name(String name) throws RestApiException {
+ public ProjectApi name(String name) {
throw new NotImplementedException();
}
@Override
- public ProjectApi create(ProjectInput in) throws RestApiException {
+ public ProjectApi create(ProjectInput in) {
throw new NotImplementedException();
}
@Override
- public ProjectApi create(String name) throws RestApiException {
+ public ProjectApi create(String name) {
throw new NotImplementedException();
}
diff --git a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/TagApi.java b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/TagApi.java
index bce4a7c..97dbf15 100644
--- a/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/TagApi.java
+++ b/gerrit-extension-api/src/main/java/com/google/gerrit/extensions/api/projects/TagApi.java
@@ -30,17 +30,17 @@
**/
class NotImplemented implements TagApi {
@Override
- public TagApi create(TagInput input) throws RestApiException {
+ public TagApi create(TagInput input) {
throw new NotImplementedException();
}
@Override
- public TagInfo get() throws RestApiException {
+ public TagInfo get() {
throw new NotImplementedException();
}
@Override
- public void delete() throws RestApiException {
+ public void delete() {
throw new NotImplementedException();
}
}