" - it must be one of [String, Integer, int, Long, long, Boolean, boolean]",
accessorReturnType), methodElem);
continue;
}
SettingsKey settingsKey = element.getAnnotation(SettingsKey.class);
if (settingsKey == null) {
error(String.format(
"all methods in a Settings interface must be annotated with @SettingsKey - %s",
element.getSimpleName()), element);
continue;
}
shouldGenerateProvider |= !Strings.isNullOrEmpty(settingsKey.defaultValue())
|| !Strings.isNullOrEmpty(settingsKey.doc());
keys.add(ImmutableMap.<String, Object>builder()
.put("accessorReturnType", accessorReturnType)
.put("configAccessor", configAccessor)
.put("accessorName", methodElem.getSimpleName().toString())
.put("key", settingsKey.key())
.put("prefix", prefix)
.put("suffix", suffix)
.put("doc", settingsKey.doc())
.put("defaultValue", settingsKey.defaultValue())
.build());
}
}
ImmutableMap<String, Object> ctx = ImmutableMap.<String, Object>builder()