[
https://issues.apache.org/jira/browse/PDFBOX-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jukka Zitting updated PDFBOX-156:
---------------------------------
Reporter: Jukka Zitting
Issue Type: Improvement (was: Bug)
Reclassifying as an improvement request to implement the equals() method.
> 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
>
> [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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.