From c6a9234068228a12df5c6d3411cb647350433459 Mon Sep 17 00:00:00 2001 From: "valery.bokov" Date: Fri, 23 Oct 2026 21:43:56 +0200 Subject: [PATCH] delete the throws for PDFMergerUtility.addSource --- .../java/org/apache/pdfbox/multipdf/PDFMergerUtility.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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); }