Seifeddine Dridi commented on FOP-2455:

The reason is simply that two objects should be considered equal if they are 
both null. If we only check if an object is different from null before invoking 
method equals(), then the two objects would be evaluated as different when they 
are both null.

> [Patch] Duplicated AFP resource objects
> ---------------------------------------
>                 Key: FOP-2455
>                 URL: https://issues.apache.org/jira/browse/FOP-2455
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/afp
>    Affects Versions: trunk
>            Reporter: Seifeddine Dridi
>              Labels: patch
>             Fix For: trunk
>         Attachments: CZARN00, T1001252, fop.xconf, patch-updated.diff, 
> patch.diff, test-fixed.afp, test.afp, test.fo
> When generating AFP documents, font resource objects are written as many 
> times as the number of formatting objects in which they were used.
> This regression was introduced after a commit made Glenn Adams to fix 
> FindBugs warnings (revision 1616590).

This message was sent by Atlassian JIRA

Reply via email to