fix(weaver-pojo): Fix value-based visiting in compound entries
This commit is contained in:
@@ -86,7 +86,7 @@ public class StaticPojoCompoundConfigEntry<T> extends BaseConfigEntry<T> impleme
|
|||||||
try {
|
try {
|
||||||
Object subValue = entry.getter().invoke(value);
|
Object subValue = entry.getter().invoke(value);
|
||||||
//noinspection unchecked
|
//noinspection unchecked
|
||||||
visitor.visitEntry((ConfigEntry<Object>) entry.configEntry(), subValue);
|
((ConfigEntry<Object>) entry.configEntry()).visitInOrder(visitor, subValue);
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
throw new RuntimeException("Failed to get compound sub entry value \"" + key + "\"");
|
throw new RuntimeException("Failed to get compound sub entry value \"" + key + "\"");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user