Skip to content

Commit 3046fee

Browse files
committed
Remove throws clause from function signature
1 parent 387c589 commit 3046fee

File tree

1 file changed

+2
-2
lines changed
  • zebedee-cms/src/main/java/com/github/onsdigital/zebedee/model/approval

1 file changed

+2
-2
lines changed

zebedee-cms/src/main/java/com/github/onsdigital/zebedee/model/approval/ApproveTask.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ protected String filePathGenerator(String datasetId, Date publishDate, String Da
499499
return finalPath;
500500
}
501501

502-
protected String pickCorrectDatasetVersion(String currentDatasetVersion, String defaultDatasetVersion) throws IllegalArgumentException {
502+
protected String pickCorrectDatasetVersion(String currentDatasetVersion, String defaultDatasetVersion) {
503503
if (defaultDatasetVersion == null || currentDatasetVersion == null) {
504504
throw new IllegalArgumentException("input can't be null");
505505
}
@@ -526,7 +526,7 @@ protected String incrementDatasetVersionByOne(String datasetVersion) {
526526
return letter + Integer.toString(number);
527527
}
528528

529-
protected String findCorrectDatasetVersion(List<String> listOfUris) throws IllegalArgumentException {
529+
protected String findCorrectDatasetVersion(List<String> listOfUris) {
530530
if (listOfUris == null) {
531531
throw new IllegalArgumentException("input array can't be null");
532532
}

0 commit comments

Comments
 (0)