From 03288228ea38e3594becbfd263d4852aa6c99d41 Mon Sep 17 00:00:00 2001 From: Maximilian Berger Date: Wed, 20 Aug 2008 13:24:18 +0000 Subject: [PATCH] valueOf is Java 1.5+ only 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 | 2 +- src/java/org/apache/fop/render/pcl/PCLRenderer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/render/afp/AFPRenderer.java b/src/java/org/apache/fop/render/afp/AFPRenderer.java index d5129f167..db7530cdf 100644 --- a/src/java/org/apache/fop/render/afp/AFPRenderer.java +++ b/src/java/org/apache/fop/render/afp/AFPRenderer.java @@ -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; } diff --git a/src/java/org/apache/fop/render/pcl/PCLRenderer.java b/src/java/org/apache/fop/render/pcl/PCLRenderer.java index 627e31b95..3e381a17e 100644 --- a/src/java/org/apache/fop/render/pcl/PCLRenderer.java +++ b/src/java/org/apache/fop/render/pcl/PCLRenderer.java @@ -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; } -- 2.39.5