From 6072f83df4a13ca60272682431a7d26853886a21 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Mon, 25 Nov 2024 04:32:45 -0800 Subject: [PATCH] NodeBuffer append is this.type --- shared/src/main/scala/scala/xml/NodeBuffer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/main/scala/scala/xml/NodeBuffer.scala b/shared/src/main/scala/scala/xml/NodeBuffer.scala index af086ec2..7a26caa6 100644 --- a/shared/src/main/scala/scala/xml/NodeBuffer.scala +++ b/shared/src/main/scala/scala/xml/NodeBuffer.scala @@ -36,7 +36,7 @@ class NodeBuffer extends scala.collection.mutable.ArrayBuffer[Node] with ScalaVe * @param o converts to an xml node and adds to this node buffer * @return this nodebuffer */ - def &+(o: Any): NodeBuffer = { + def &+(o: Any): this.type = { o match { case null | _: Unit | Text("") => // ignore case it: Iterator[?] => it.foreach(&+)