]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
valueOf is Java 1.5+ only
authorMaximilian Berger <maxberger@apache.org>
Wed, 20 Aug 2008 13:24:18 +0000 (13:24 +0000)
committerMaximilian Berger <maxberger@apache.org>
Wed, 20 Aug 2008 13:24:18 +0000 (13:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@687323 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/afp/AFPRenderer.java
src/java/org/apache/fop/render/pcl/PCLRenderer.java

index d5129f16762ca980eb1c8c14009a6dbc1a4c831e..db7530cdfada99ef7a92336e98931ae0ba3dd9d6 100644 (file)
@@ -935,7 +935,7 @@ public class AFPRenderer extends AbstractPathOrientedRenderer {
         RendererContext context;
         context = super.createRendererContext(x, y, width, height, foreignAttributes);
         context.setProperty(AFPRendererContextConstants.AFP_GRAYSCALE,
-                Boolean.valueOf(!this.colorImages));
+                new Boolean(!this.colorImages));
         return context;
     }
 
index 627e31b9575383be045b0b581f8b26e042eef58e..3e381a17e29e024fccbd22b6b7c86b27d4d88094 100644 (file)
@@ -1148,7 +1148,7 @@ public class PCLRenderer extends PrintRenderer {
         RendererContext context = super.createRendererContext(
                 x, y, width, height, foreignAttributes);
         context.setProperty(PCLRendererContextConstants.PCL_COLOR_CANVAS,
-                Boolean.valueOf(this.useColorCanvas));
+                new Boolean(this.useColorCanvas));
         return context;
     }