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

Tilman Hausherr commented on PDFBOX-156:
----------------------------------------

Fixed in PDFBOX-2677 by extending PDDictionaryWrapper.

> PDOutlineItem does not implement equals
> ---------------------------------------
>
>                 Key: PDFBOX-156
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-156
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 0.7.0
>            Reporter: Jukka Zitting
>            Priority: Minor
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1475739
> Originally submitted by robertwenner on 2006-04-24 12:23.
> This code
> PDOutlineItem a = outline.getFirstChild();
> PDOutlineItem b = outline.getFirstChild();
> if (!a.equals(b)) {
>     throw new RuntimeException("Not equal");
> }
> throws, because PDOutlineItem does not implement equals().
> I'd like to compare nodes to each other while
> traversing the outline. How do I do that without equals
> or hashCode working properly?
> Thanks,
> Robert



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to