pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1754160 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceRGB.java
Date Tue, 26 Jul 2016 17:19:28 GMT
Author: tilman
Date: Tue Jul 26 17:19:28 2016
New Revision: 1754160

URL: http://svn.apache.org/viewvc?rev=1754160&view=rev
Log:
PDFBOX-3375: revert my own attempt at this, didn't work

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceRGB.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceRGB.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceRGB.java?rev=1754160&r1=1754159&r2=1754160&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceRGB.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceRGB.java
Tue Jul 26 17:19:28 2016
@@ -17,7 +17,6 @@
 package org.apache.pdfbox.pdmodel.graphics.color;
 
 import java.awt.Transparency;
-import java.awt.color.CMMException;
 import java.awt.color.ColorSpace;
 import java.awt.image.BufferedImage;
 import java.awt.image.ColorModel;
@@ -35,19 +34,6 @@ import org.apache.pdfbox.cos.COSName;
  */
 public final class PDDeviceRGB extends PDDeviceColorSpace
 {
-    static
-    {
-        try
-        {
-            // Initialize before INSTANCE object is used due to weird errors (PDFBOX-2184,
PDFBOX-3375)
-            ColorSpace.getInstance(ColorSpace.CS_sRGB).toRGB(new float[] { 0, 0, 0, 0 });
-        }
-        catch (CMMException ex)
-        {
-            // ignored
-        }
-    }
-
     /**  This is the single instance of this class. */
     public static final PDDeviceRGB INSTANCE = new PDDeviceRGB();
     



Mime
View raw message