From 57d20057ab1ef6f4f9e9d52c0a686b95b2c4d72f Mon Sep 17 00:00:00 2001 From: michelou Date: Fri, 1 Oct 2004 15:10:39 +0000 Subject: - changed comment formatting. --- sources/scala/xml/NodeBuffer.scala | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/sources/scala/xml/NodeBuffer.scala b/sources/scala/xml/NodeBuffer.scala index ea50aedf34..9fedfdb683 100644 --- a/sources/scala/xml/NodeBuffer.scala +++ b/sources/scala/xml/NodeBuffer.scala @@ -7,21 +7,38 @@ ** $Id$ \* */ -package scala.xml ; +package scala.xml; -/** this class acts as a Buffer for nodes. If it is used as a sequence - * of nodes Seq[Node], it must be ensured that no updates occur after - * that point, because scala.xml.Node is assumed to be immutable. +/** + * This class acts as a Buffer for nodes. If it is used as a sequence + * of nodes Seq[Node], it must be ensured that no updates + * occur after that point, because scala.xml.Node is assumed + * to be immutable. */ class NodeBuffer extends scala.collection.mutable.ArrayBuffer[Node] { - /** append a single node to this buffer, returns reference on this NodeBuffer for convenience. */ - override def +(n:Node):NodeBuffer = { super.+( n ); this } + /** + * Append a single node to this buffer, returns reference on this + * NodeBuffer for convenience. + * + * @param n + */ + override def +(n: Node): NodeBuffer = { super.+(n); this } - /** append a sequence of nodes to this buffer, returns reference on this NodeBuffer for convenience. */ - def +(ns:Iterable[Node]):NodeBuffer = { super.++( ns ); this } + /** + * Append a sequence of nodes to this buffer, returns reference on + * this NodeBuffer for convenience. + * + * @param ns + */ + def +(ns: Iterable[Node]): NodeBuffer = { super.++(ns); this } - /** append given string as a scala.xml.Text node to this buffer, returns reference on this NodeBuffer for convenience. */ - def +(t:String):NodeBuffer = { super.+( Text( t ) ); this } + /** + * Append given string as a scala.xml.Text node to this + * buffer, returns reference on this NodeBuffer for convenience. + * + * @param t + */ + def +(t :String): NodeBuffer = { super.+(Text(t)); this } } -- cgit v1.2.3