You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/10/11 00:08:34 UTC

[jira] [Updated] (PDFBOX-156) PDOutlineItem does not implement equals

     [ https://issues.apache.org/jira/browse/PDFBOX-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Hewson updated PDFBOX-156:
-------------------------------
    Fix Version/s: 2.0.0

> PDOutlineItem does not implement equals
> ---------------------------------------
>
>                 Key: PDFBOX-156
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-156
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>            Reporter: Jukka Zitting
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> [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)