Skip to content

Commit

Permalink
override writeReplace. fix serialize error
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k authored and ashawley committed Oct 10, 2018
1 parent c7f27d8 commit 766c05a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shared/src/main/scala/scala/xml/MetaData.scala
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,6 @@ abstract class MetaData

final def remove(namespace: String, owner: Node, key: String): MetaData =
remove(namespace, owner.scope, key)

protected[this] override def writeReplace(): AnyRef = this
}
2 changes: 2 additions & 0 deletions shared/src/main/scala/scala/xml/NodeSeq.scala
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,6 @@ abstract class NodeSeq extends AbstractSeq[Node] with immutable.Seq[Node] with S
override def toString(): String = theSeq.mkString

def text: String = (this map (_.text)).mkString

protected[this] override def writeReplace(): AnyRef = this
}

0 comments on commit 766c05a

Please sign in to comment.