From 9adfae3eb6782ce8b240045f4a0f2702b09c30b6 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 4 Feb 2011 10:02:01 +0000 Subject: [PATCH] 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 --- test/java/org/apache/fop/util/BitmapImageUtilTestCase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 { -- 2.39.5