From: Maximilian Berger Date: Wed, 20 Aug 2008 13:24:18 +0000 (+0000) Subject: valueOf is Java 1.5+ only X-Git-Tag: fop-1_0~452 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=03288228ea38e3594becbfd263d4852aa6c99d41;p=xmlgraphics-fop.git valueOf is Java 1.5+ only git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@687323 13f79535-47bb-0310-9956-ffa450edef68 --- 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; }