You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2020/12/24 12:03:10 UTC

svn commit: r1884771 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Predictor.java

Author: tilman
Date: Thu Dec 24 12:03:09 2020
New Revision: 1884771

URL: http://svn.apache.org/viewvc?rev=1884771&view=rev
Log:
PDFBOX-4892: use shorthand

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Predictor.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Predictor.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Predictor.java?rev=1884771&r1=1884770&r2=1884771&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Predictor.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/filter/Predictor.java Thu Dec 24 12:03:09 2020
@@ -112,12 +112,12 @@ public final class Predictor
                             if (((sub + left) & 1) == 0)
                             {
                                 // reset bit
-                                actline[p] = (byte) (actline[p] & ~(1 << bit));
+                                actline[p] &= ~(1 << bit);
                             }
                             else
                             {
                                 // set bit
-                                actline[p] = (byte) (actline[p] | (1 << bit));
+                                actline[p] |= 1 << bit;
                             }
                         }
                     }