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