Fixed networkContainerSupportsAllNetworkKeys by:

- Ignoring Deprecated key fields when requiring support
This commit is contained in:
Rsl1122 2019-01-26 11:52:27 +02:00
parent 4ee31de3ed
commit 300dc69e33

View File

@ -33,7 +33,10 @@ public class FieldFetcher {
if (!Modifier.isPublic(field.getModifiers())) {
continue;
}
T key = (T) field.get(null);
if (field.getAnnotationsByType(Deprecated.class).length > 0) {
continue;
}
T key = ofType.cast(field.get(null));
list.add(key);
}
return list;