public AnnotationsResource(TreeLogger logger, JClassType clazz,
String locale, boolean isConstants) throws AnnotationsError {
KeyGenerator keyGenerator = getKeyGenerator(clazz);
map = new HashMap<String, MethodEntry>();
setPath(clazz.getQualifiedSourceName());
DefaultLocale defLocale = getClassAnnotation(clazz, DefaultLocale.class);
if (defLocale != null && !ResourceFactory.DEFAULT_TOKEN.equals(locale)
&& !locale.equalsIgnoreCase(defLocale.value())) {
logger.log(TreeLogger.WARN, "@DefaultLocale on "
+ clazz.getQualifiedSourceName() + " doesn't match " + locale);
return;
}
for (JMethod method : clazz.getMethods()) {