Skip to content

Commit 456507d

Browse files
committed
PDFBOX-5660: remove unneeded cast, improve javadoc
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1928952 13f79535-47bb-0310-9956-ffa450edef68
1 parent a190135 commit 456507d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFCloneUtility.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ PDDocument getDestination()
7474
*
7575
* Expert use only, don’t use it if you don’t know exactly what you are doing.
7676
*
77+
* @param <TCOSBase> The type to be returned.
7778
* @param base the initial object as the root of the deep-clone operation
7879
* @return the cloned instance of the base object
7980
* @throws IOException if an I/O error occurs

pdfbox/src/test/java/org/apache/pdfbox/multipdf/PDFCloneUtilityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void testClonePDFWithCosArrayStream() throws IOException
6363
new PDPageContentStream(srcDoc, pdPage, AppendMode.APPEND, true).close();
6464
PDFCloneUtility cloner = new PDFCloneUtility(dstDoc);
6565
assertEquals(dstDoc, cloner.getDestination());
66-
COSDictionary clonedPageDictionary = (COSDictionary) cloner.cloneForNewDocument(pdPage.getCOSObject());
66+
COSDictionary clonedPageDictionary = cloner.cloneForNewDocument(pdPage.getCOSObject());
6767
PDPage clonedPage = new PDPage(clonedPageDictionary);
6868
Iterator<PDStream> contentStreams = clonedPage.getContentStreams();
6969
assertNotNull(contentStreams.next());

0 commit comments

Comments
 (0)