mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 14:46:25 +00:00
#1337 - Fix YamlLoader ... such that it loads multi-part yml source
This commit is contained in:
1 parent
70aed3906e
commit
47e8d27212
1 file changed
+4
-1
@@ -21,9 +21,12 @@ class YamlLoader {
|
||||
this.loadContext = loadContext;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
void load(InputStream is) {
|
||||
if (is != null) {
|
||||
loadMap(yaml.load(is), null);
|
||||
for (Object map : yaml.loadAll(is)) {
|
||||
loadMap((Map<String, Object>)map, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user