pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1747574 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDDeviceRGB.java
Date Thu, 09 Jun 2016 18:26:19 GMT
Author: lehmi
Date: Thu Jun  9 18:26:19 2016
New Revision: 1747574

URL: http://svn.apache.org/viewvc?rev=1747574&view=rev
Log:
PDFBOX-3375: use a static lock object to synchronize the initialization of a singleton

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=1747574&r1=1747573&r2=1747574&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
Thu Jun  9 18:26:19 2016
@@ -54,7 +54,7 @@ public final class PDDeviceRGB extends P
         {
             return;
         }
-        synchronized (this)
+        synchronized (PDDeviceRGB.class)
         {
             // we might have been waiting for another thread, so check again
             if (awtColorSpace != null)



Mime
View raw message