try getParent() instead of this

This commit is contained in:
marhali 2023-02-19 13:25:08 +01:00
parent 9816066046
commit d5295fa111

View File

@ -191,7 +191,7 @@ public interface Section {
if (o instanceof Map) {
if (o instanceof MapSection) return (MapSection) o;
MapSection mapSection = new MapSection((Map<?, ?>) o);
mapSection.setParent(this, Section.getName(path));
mapSection.setParent(getParent(), Section.getName(path));
return mapSection;
}
return null;
@ -214,7 +214,7 @@ public interface Section {
return list;
}
ListSection list = new ListSection(Collections.singleton(o));
list.setParent(this, Section.getName(path));
list.setParent(getParent(), Section.getName(path));
return list;
});
}