File tree 2 files changed +5
-2
lines changed
main/java/cz/cvut/kbss/jsonld/serialization
test/java/cz/cvut/kbss/jsonld/serialization
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ public void closeObject(SerializationContext<?> ctx) {
85
85
if (!ctx .isCurrentEmpty ()) {
86
86
currentNode .prependItem (ctx .getContextNode ());
87
87
}
88
+ closeCurrentNode ();
89
+ }
90
+
91
+ private void closeCurrentNode () {
88
92
currentNode .close ();
89
93
if (!nodeStack .empty ()) {
90
94
this .currentNode = nodeStack .pop ();
@@ -126,7 +130,7 @@ public void openCollection(SerializationContext<? extends Collection<?>> ctx) {
126
130
@ Override
127
131
public void closeCollection (SerializationContext <?> ctx ) {
128
132
assert currentNode instanceof CollectionNode ;
129
- closeObject ( ctx );
133
+ closeCurrentNode ( );
130
134
}
131
135
132
136
public CompositeNode <?> getTreeRoot () {
Original file line number Diff line number Diff line change 23
23
import cz .cvut .kbss .jsonld .environment .Vocabulary ;
24
24
import cz .cvut .kbss .jsonld .environment .model .*;
25
25
import cz .cvut .kbss .jsonld .serialization .context .DummyJsonLdContext ;
26
- import cz .cvut .kbss .jsonld .serialization .context .MappingJsonLdContextFactory ;
27
26
import cz .cvut .kbss .jsonld .serialization .model .*;
28
27
import cz .cvut .kbss .jsonld .serialization .serializer .LiteralValueSerializers ;
29
28
import cz .cvut .kbss .jsonld .serialization .serializer .compact .DefaultValueSerializer ;
You can’t perform that action at this time.
0 commit comments