You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Guillaume Bailleul (JIRA)" <ji...@apache.org> on 2012/12/16 11:52:13 UTC

[jira] [Commented] (PDFBOX-1460) wasted work in AbstractInvalidFileTester.validate()

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

Guillaume Bailleul commented on PDFBOX-1460:
--------------------------------------------

Patch applied in r1422514.

Thanks for contribution
                
> wasted work in AbstractInvalidFileTester.validate()
> ---------------------------------------------------
>
>                 Key: PDFBOX-1460
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1460
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>            Reporter: Adrian Nistor
>            Assignee: Guillaume Bailleul
>              Labels: patch, performance
>         Attachments: patch.diff
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> The problem appears in version 1.7.1 and in revision 1414788.  I
> attached a two-line patch that fixes it.  This problem and the
> attached patch are similar the previously fixed PDFBOX-1447 and its
> patch.
> In method "AbstractInvalidFileTester.validate", the loop over
> "result.getErrorsList()" should break immediately after "found" is set
> to "true" if "outputResult" is null.  All the iterations after "found"
> is set to "true" do not perform any useful work when "outputResult" is
> null, at best they just set "found" again to "true".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira