[ 
https://issues.apache.org/jira/browse/PDFBOX-5628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17738241#comment-17738241
 ] 

ASF subversion and git services commented on PDFBOX-5628:
---------------------------------------------------------

Commit 1910673 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1910673 ]

PDFBOX-5628: fix comparison, as suggested by Stefan Ziegler

> Bug in PDFMergerUtility#mergeFields
> -----------------------------------
>
>                 Key: PDFBOX-5628
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5628
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.28
>            Reporter: Stefan Ziegler
>            Priority: Minor
>
> Method:
> {code:java}
> PDFMergerUtility#mergeFields(PDFCloneUtility cloner, PDField destField, 
> PDField srcField){code}
> There is the following code:
> {code:java}
> if (destField.getFieldType() == "Tx" && destField.getFieldType() == 
> "Tx"){code}
> I think the second destField should be srcField?
> An I think you should compare with equals here and not with ==
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to