]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix compile error when JAI is not around.
authorJeremias Maerki <jeremias@apache.org>
Fri, 4 Feb 2011 10:02:01 +0000 (10:02 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 4 Feb 2011 10:02:01 +0000 (10:02 +0000)
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

index cf8fdce24a009259ff9c52c2f7a7be1ff4b938e2..92a3a15bd5a5b59656a4388293c7fbbb09ec6e03 100644 (file)
@@ -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 {