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 2019/08/22 18:41:42 UTC

svn commit: r1865705 - /pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java

Author: tilman
Date: Thu Aug 22 18:41:42 2019
New Revision: 1865705

URL: http://svn.apache.org/viewvc?rev=1865705&view=rev
Log:
PDFBOX-4071: SonarQube fix

Modified:
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java?rev=1865705&r1=1865704&r2=1865705&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java Thu Aug 22 18:41:42 2019
@@ -160,7 +160,8 @@ public class PDSeparation extends PDSpec
             for (int x = 0; x < width; x++)
             {
                 raster.getPixel(x, y, samples);
-                int[] alt = calculatedValues.get(hash = Float.floatToIntBits(samples[0]));
+                hash = Float.floatToIntBits(samples[0]);
+                int[] alt = calculatedValues.get(hash);
                 if (alt == null)
                 {
                     alt = new int[numAltComponents];