try getParent() instead of this
This commit is contained in:
parent
9816066046
commit
d5295fa111
@ -191,7 +191,7 @@ public interface Section {
|
|||||||
if (o instanceof Map) {
|
if (o instanceof Map) {
|
||||||
if (o instanceof MapSection) return (MapSection) o;
|
if (o instanceof MapSection) return (MapSection) o;
|
||||||
MapSection mapSection = new MapSection((Map<?, ?>) o);
|
MapSection mapSection = new MapSection((Map<?, ?>) o);
|
||||||
mapSection.setParent(this, Section.getName(path));
|
mapSection.setParent(getParent(), Section.getName(path));
|
||||||
return mapSection;
|
return mapSection;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@ -214,7 +214,7 @@ public interface Section {
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
ListSection list = new ListSection(Collections.singleton(o));
|
ListSection list = new ListSection(Collections.singleton(o));
|
||||||
list.setParent(this, Section.getName(path));
|
list.setParent(getParent(), Section.getName(path));
|
||||||
return list;
|
return list;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user