Skip to content

Deprecate various classes #394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package dtd

/** Parser for regexps (content models in DTD element declarations) */

@deprecated("This object will be removed", "1.3.0")
object ContentModelParser extends Scanner { // a bit too permissive concerning #PCDATA
import ContentModel._

Expand Down
1 change: 1 addition & 0 deletions shared/src/main/scala/scala/xml/dtd/ElementValidator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import impl._
* validate children and/or attributes of an element
* exceptions are created but not thrown.
*/
@deprecated("This class will be removed", "1.3.0")
class ElementValidator() extends Function1[Node, Boolean] {

private var exc: List[ValidationException] = Nil
Expand Down
1 change: 1 addition & 0 deletions shared/src/main/scala/scala/xml/dtd/Scanner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import scala.collection.Seq
* Scanner for regexps (content models in DTD element declarations)
* todo: cleanup
*/
@deprecated("This class will be removed", "1.3.0")
class Scanner extends Tokens with parsing.TokenTests {

final val ENDCH = '\u0000'
Expand Down
1 change: 1 addition & 0 deletions shared/src/main/scala/scala/xml/factory/Binder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import parsing.ValidatingMarkupHandler
/**
* @author Burak Emir
*/
@deprecated("This class will be removed", "1.3.0")
abstract class Binder(val preserveWS: Boolean) extends ValidatingMarkupHandler {

var result: NodeBuffer = new NodeBuffer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package parsing

import scala.xml.dtd._

@deprecated("This class will be removed", "1.3.0")
abstract class ValidatingMarkupHandler extends MarkupHandler {

var rootLabel: String = _
Expand Down