Skip to content

Commit 35f452c

Browse files
committed
Document dropping mutuable.Stack
Make a note of binary compatability change in scaladoc for members that were converted to mutable.Stack.
1 parent 64b7dbd commit 35f452c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

shared/src/main/scala/scala/xml/parsing/FactoryAdapter.scala

+24
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,33 @@ abstract class FactoryAdapter extends DefaultHandler with factory.XMLLoader[Node
3939
var rootElem: Node = null
4040

4141
val buffer = new StringBuilder()
42+
/** List of attributes
43+
*
44+
* Previously was a [[scala.collection.mutable.Stack]], but is now a mutable [[scala.collection.immutable.List]].
45+
*
46+
* @since 1.0.7
47+
*/
4248
var attribStack = List.empty[MetaData]
49+
/** List of elements
50+
*
51+
* Previously was a [[scala.collection.mutable.Stack]], but is now a mutable [[scala.collection.immutable.List]].
52+
*
53+
* @since 1.0.7
54+
*/
4355
var hStack = List.empty[Node] // [ element ] contains siblings
56+
/** List of element names
57+
*
58+
* Previously was a [[scala.collection.mutable.Stack]], but is now a mutable [[scala.collection.immutable.List]].
59+
*
60+
* @since 1.0.7
61+
*/
4462
var tagStack = List.empty[String]
63+
/** List of namespaces
64+
*
65+
* Previously was a [[scala.collection.mutable.Stack]], but is now a mutable [[scala.collection.immutable.List]].
66+
*
67+
* @since 1.0.7
68+
*/
4569
var scopeStack = List.empty[NamespaceBinding]
4670

4771
var curTag: String = null

0 commit comments

Comments
 (0)