mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-03 22:30:31 +03:00
[FIX] Bug fixes
This commit is contained in:
parent
73c6c48f42
commit
265a872b08
1 changed files with 4 additions and 2 deletions
|
@ -102,9 +102,11 @@ public static Set<String> getFeatures(Class<?> clazz) {
|
||||||
|
|
||||||
public static void getFeatures(Class<?> clazz, Set<String> list) {
|
public static void getFeatures(Class<?> clazz, Set<String> list) {
|
||||||
Features features = clazz.getAnnotation(Features.class);
|
Features features = clazz.getAnnotation(Features.class);
|
||||||
|
if (features != null) {
|
||||||
for (Feature feature : features.value()) {
|
for (Feature feature : features.value()) {
|
||||||
list.add(feature.value());
|
list.add(feature.value());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Class<?> superClass = clazz.getSuperclass();
|
Class<?> superClass = clazz.getSuperclass();
|
||||||
if (superClass != null && superClass != Object.class) {
|
if (superClass != null && superClass != Object.class) {
|
||||||
getFeatures(superClass, list);
|
getFeatures(superClass, list);
|
||||||
|
|
Loading…
Reference in a new issue