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 committed Aug 30, 2018
1 parent 5f67a6f commit 97bc6b4
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 @@ -155,4 +155,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 97bc6b4

Please sign in to comment.