From 9a36a9e8d6eb6e45413495c2be625cd040155b21 Mon Sep 17 00:00:00 2001 From: Tom Page Date: Wed, 31 Jul 2019 16:30:28 +0100 Subject: [PATCH 1/3] Remove unthrown checked exceptions. Update the javadoc to refer to RuntimeExceptions instead. Also conversion from IOException to RuntimeException in UnfiledContainerAPI and UnfiledRecordFolderAPI to add consistency with RecordFolderAPI. --- .../requests/gscore/api/FilePlanAPI.java | 10 +++--- .../requests/gscore/api/FilesAPI.java | 8 ++--- .../requests/gscore/api/RMSiteAPI.java | 20 +++++------ .../requests/gscore/api/RMUserAPI.java | 4 +-- .../gscore/api/RecordCategoryAPI.java | 12 +++---- .../requests/gscore/api/RecordFolderAPI.java | 12 +++---- .../requests/gscore/api/RecordsAPI.java | 28 ++++++++-------- .../requests/gscore/api/TransferAPI.java | 4 +-- .../gscore/api/TransferContainerAPI.java | 10 +++--- .../gscore/api/UnfiledContainerAPI.java | 31 ++++++++++------- .../gscore/api/UnfiledRecordFolderAPI.java | 33 ++++++++++++------- 11 files changed, 95 insertions(+), 77 deletions(-) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/FilePlanAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/FilePlanAPI.java index 2dc3978e1b..664e9d7d70 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/FilePlanAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/FilePlanAPI.java @@ -77,7 +77,7 @@ public class FilePlanAPI extends RMModelRequest * @param filePlanId The identifier of a file plan * @param parameters The URL parameters to add * @return The {@link FilePlan} for the given {@code filePlanId} - * @throws Exception for the following cases: + * @throws RuntimeException for the following cases: *