private static void initPaths() {
deprecatedFields.clear();
deprecatedPrefixes.clear();
globalOnlyFields.clear();
globalOnlyPrefixes.clear();
movedPaths.clear();
for (final WrapMoved moved : ConfPaths.getExtraMovedPaths()) {
movedPaths.put(moved.oldPath, moved);
}
for (final Field field : ConfPaths.class.getDeclaredFields()) {
if (field.getType() != String.class) {
continue;
}
final String fieldName = field.getName();
checkAddPrefixes(field, fieldName, GlobalConfig.class, globalOnlyFields, globalOnlyPrefixes);
checkAddPrefixes(field, fieldName, Deprecated.class, deprecatedFields, deprecatedPrefixes);
if (field.isAnnotationPresent(Moved.class)) {
addMoved(field, field.getAnnotation(Moved.class));
}
}
}