From: Jeremias Maerki Date: Fri, 4 Feb 2011 10:02:01 +0000 (+0000) Subject: Fix compile error when JAI is not around. X-Git-Tag: fop-1_1rc1old~333 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9adfae3eb6782ce8b240045f4a0f2702b09c30b6;p=xmlgraphics-fop.git Fix compile error when JAI is not around. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067126 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java b/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java index cf8fdce24..92a3a15bd 100644 --- a/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java +++ b/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java @@ -38,7 +38,6 @@ import org.apache.xmlgraphics.util.WriterOutputStream; import org.apache.xmlgraphics.util.io.ASCIIHexOutputStream; import org.apache.fop.util.bitmap.BitmapImageUtil; -import org.apache.fop.util.bitmap.JAIMonochromeBitmapConverter; import org.apache.fop.util.bitmap.MonochromeBitmapConverter; /** @@ -110,7 +109,7 @@ public class BitmapImageUtilTestCase extends TestCase { private boolean isJAIAvailable() { MonochromeBitmapConverter converter = BitmapImageUtil.createDefaultMonochromeBitmapConverter(); - return (converter instanceof JAIMonochromeBitmapConverter); + return converter.getClass().getName().contains("JAI"); } private void saveAsPNG(RenderedImage img, String name) throws IOException {