diff --git a/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java b/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java index 821b84fd4c0..7c368b2a8d0 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java @@ -291,10 +291,8 @@ public void setDestinationMetadata(PDMetadata meta) * Add a source file to the list of files to merge. * * @param source Full path and file name of source document. - * - * @throws FileNotFoundException If the file doesn't exist */ - public void addSource(String source) throws FileNotFoundException + public void addSource(String source) { addSource(new File(source)); } @@ -303,10 +301,8 @@ public void addSource(String source) throws FileNotFoundException * Add a source file to the list of files to merge. * * @param source File representing source document - * - * @throws FileNotFoundException If the file doesn't exist */ - public void addSource(File source) throws FileNotFoundException + public void addSource(File source) { sources.add(source); }