IDEA-79509: optimization level must be a string

This commit is contained in:
sweinreuter
2012-01-02 11:18:23 +01:00
parent 6610dee636
commit f48c6a6c49

View File

@@ -67,7 +67,11 @@ public class Saxon9Support {
public static TransformerFactory createTransformerFactory() {
final TransformerFactoryImpl factory = new TransformerFactoryImpl();
factory.setAttribute(FeatureKeys.TRACE_LISTENER, new Saxon9TraceListener());
factory.setAttribute(FeatureKeys.OPTIMIZATION_LEVEL, 0);
try {
factory.setAttribute(FeatureKeys.OPTIMIZATION_LEVEL, "0");
} catch (IllegalArgumentException e) {
e.printStackTrace();
}
return factory;
}
}