You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2011/02/04 11:02:01 UTC
svn commit: r1067126 -
/xmlgraphics/fop/trunk/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java
Author: jeremias
Date: Fri Feb 4 10:02:01 2011
New Revision: 1067126
URL: http://svn.apache.org/viewvc?rev=1067126&view=rev
Log:
Fix compile error when JAI is not around.
Modified:
xmlgraphics/fop/trunk/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java
Modified: xmlgraphics/fop/trunk/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java?rev=1067126&r1=1067125&r2=1067126&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java (original)
+++ xmlgraphics/fop/trunk/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java Fri Feb 4 10:02:01 2011
@@ -38,7 +38,6 @@ import org.apache.xmlgraphics.util.Write
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 ext
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 {
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org