Skip to content

Commit

Permalink
Synchronize Android and Jvm Implementations.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdvrieze committed Apr 10, 2024
1 parent 6dc7b5f commit e8af419
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Expand Up @@ -62,7 +62,7 @@ public actual object ElementSerializer : XmlSerializer<Element1> {
previousValue: Element1?,
isValueChild: Boolean
): IElement {
return delegate.deserializeXML(decoder, input, previousValue as Element2, isValueChild) as IElement
return delegate.deserializeXML(decoder, input, previousValue as Element2?, isValueChild) as IElement
}

}
Expand Up @@ -64,5 +64,4 @@ public actual object NodeSerializer : XmlSerializer<Node1> {
): INode {
return delegate.deserializeXML(decoder, input, previousValue as INode, isValueChild) as INode
}

}
Expand Up @@ -22,9 +22,11 @@
package nl.adaptivity.xmlutil.serialization

import kotlinx.serialization.modules.SerializersModule
import nl.adaptivity.xmlutil.ExperimentalXmlUtilApi
import org.w3c.dom.Element
import org.w3c.dom.Node

@ExperimentalXmlUtilApi
public actual fun getPlatformDefaultModule(): SerializersModule = SerializersModule {
contextual(Element::class, ElementSerializer)
contextual(Node::class, NodeSerializer)
Expand Down

0 comments on commit e8af419

Please sign in to comment.