}
}
static boolean allowHtmlQuirksMode(TreeLogger logger, TypeOracle typeOracle,
JClassType extendsGadget) throws UnableToCompleteException {
AllowHtmlQuirksMode annotation = extendsGadget.getAnnotation(Gadget.AllowHtmlQuirksMode.class);
if (annotation == null) {
logger.log(TreeLogger.WARN, "Gadget class " + extendsGadget.getName()
+ " is missing @AllowHtmlQuirksMode. "
+ "Using standards mode will become the default in the future.");
return true;
}
return annotation.value();
}