From 2b20d5f124692ffb1774b636f3e45b6971a61481 Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Thu, 4 Jul 2024 08:04:38 +0000 Subject: [PATCH] PDFBOX-5660: remove unneeded cast git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1918902 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/pdfbox/multipdf/PDFMergerUtilityTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdfbox/src/test/java/org/apache/pdfbox/multipdf/PDFMergerUtilityTest.java b/pdfbox/src/test/java/org/apache/pdfbox/multipdf/PDFMergerUtilityTest.java index 8ee9ce1edcd..e9fc98a448e 100644 --- a/pdfbox/src/test/java/org/apache/pdfbox/multipdf/PDFMergerUtilityTest.java +++ b/pdfbox/src/test/java/org/apache/pdfbox/multipdf/PDFMergerUtilityTest.java @@ -1113,7 +1113,7 @@ void testSinglePageSplit() throws IOException { PDAnnotationLink link = (PDAnnotationLink) ann; PDActionGoTo action = (PDActionGoTo) link.getAction(); - PDPageDestination destination = (PDPageDestination) ((PDActionGoTo) action).getDestination(); + PDPageDestination destination = (PDPageDestination) action.getDestination(); assertNull(destination.getPage()); } }