return result.toArray(new GadgetViewType[0]);
}
static boolean useLongManifestName(TreeLogger logger, TypeOracle typeOracle,
JClassType extendsGadget) {
UseLongManifestName annotation = extendsGadget.getAnnotation(Gadget.UseLongManifestName.class);
if (annotation == null) {
logger.log(TreeLogger.WARN, "Gadget class " + extendsGadget.getName()
+ " is missing @UseLongManifestName annotation. "
+ "Using short names will become the default in the future.");
return true;
}
return annotation.value();
}