You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2024/08/05 13:01:00 UTC

[jira] [Resolved] (PDFBOX-5863) bad comparison of byte with 128

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

Tilman Hausherr resolved PDFBOX-5863.
-------------------------------------
      Assignee: Tilman Hausherr
    Resolution: Fixed

Thanks!

> bad comparison of byte with 128
> -------------------------------
>
>                 Key: PDFBOX-5863
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5863
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 3.0.2 PDFBox
>            Reporter: Dieter von Holten
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 3.0.3 PDFBox, 4.0.0
>
>
> inspection by spotbugs shows a problem in o.a.padfbox.pdmodel.font.FontFactory line 285:
> the partial expression {{header[0] == 0x80 && ...}}
> is always false. The code should be{{ header[0] == (byte) 0x80 && ...}}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org