From 8ba498714d4c453c1b79f0b5c7ea6cae7d1ee6a7 Mon Sep 17 00:00:00 2001 From: Joe Barnes Date: Sat, 5 Aug 2017 23:20:57 -0400 Subject: [PATCH 1/2] Improve wording on stack deprecation --- .../src/main/scala/scala/xml/parsing/FactoryAdapter.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/src/main/scala/scala/xml/parsing/FactoryAdapter.scala b/shared/src/main/scala/scala/xml/parsing/FactoryAdapter.scala index c74754d86..6e83f7d05 100644 --- a/shared/src/main/scala/scala/xml/parsing/FactoryAdapter.scala +++ b/shared/src/main/scala/scala/xml/parsing/FactoryAdapter.scala @@ -40,28 +40,28 @@ abstract class FactoryAdapter extends DefaultHandler with factory.XMLLoader[Node val buffer = new StringBuilder() /** List of attributes * - * Previously was a [[scala.collection.mutable.Stack]], but is now a mutable [[scala.collection.immutable.List]]. + * Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]]. * * @since 1.0.7 */ var attribStack = List.empty[MetaData] /** List of elements * - * Previously was a [[scala.collection.mutable.Stack]], but is now a mutable [[scala.collection.immutable.List]]. + * Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]]. * * @since 1.0.7 */ var hStack = List.empty[Node] // [ element ] contains siblings /** List of element names * - * Previously was a [[scala.collection.mutable.Stack]], but is now a mutable [[scala.collection.immutable.List]]. + * Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]]. * * @since 1.0.7 */ var tagStack = List.empty[String] /** List of namespaces * - * Previously was a [[scala.collection.mutable.Stack]], but is now a mutable [[scala.collection.immutable.List]]. + * Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]]. * * @since 1.0.7 */ From 9cb2c7fdc539fa132c34e3a7b978bf3545b0d4d3 Mon Sep 17 00:00:00 2001 From: "Aaron S. Hawley" Date: Mon, 7 Aug 2017 18:25:00 -0400 Subject: [PATCH 2/2] Dropping mutable.stack will be in 1.1.0 not 1.0.7 --- .../src/main/scala/scala/xml/parsing/FactoryAdapter.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/src/main/scala/scala/xml/parsing/FactoryAdapter.scala b/shared/src/main/scala/scala/xml/parsing/FactoryAdapter.scala index 6e83f7d05..a099c78d3 100644 --- a/shared/src/main/scala/scala/xml/parsing/FactoryAdapter.scala +++ b/shared/src/main/scala/scala/xml/parsing/FactoryAdapter.scala @@ -42,28 +42,28 @@ abstract class FactoryAdapter extends DefaultHandler with factory.XMLLoader[Node * * Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]]. * - * @since 1.0.7 + * @since 1.1.0 */ var attribStack = List.empty[MetaData] /** List of elements * * Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]]. * - * @since 1.0.7 + * @since 1.1.0 */ var hStack = List.empty[Node] // [ element ] contains siblings /** List of element names * * Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]]. * - * @since 1.0.7 + * @since 1.1.0 */ var tagStack = List.empty[String] /** List of namespaces * * Previously was a mutable [[scala.collection.mutable.Stack Stack]], but is now a mutable reference to an immutable [[scala.collection.immutable.List List]]. * - * @since 1.0.7 + * @since 1.1.0 */ var scopeStack = List.empty[NamespaceBinding]