Skip to content

Commit bf4dd1a

Browse files
authoredMay 13, 2021
Merge pull request #513 from ashawley/drop-properties-trait
Drop the scala.xml.Properties
2 parents 3f9e79e + 655087f commit bf4dd1a

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed
 

Diff for: ‎build.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform, NativePlatform)
6767
Seq(
6868
// because we reverted #279
6969
exclude[DirectMissingMethodProblem]("scala.xml.Utility.escapeText"),
70+
exclude[MissingClassProblem]("scala.xml.Properties*"),
7071
// New MiMa checks for generic signature changes
7172
exclude[IncompatibleSignatureProblem]("*"),
7273
// afaict this is just a JDK 8 vs 16 difference, producing a false positive when

Diff for: ‎jvm/src/test/scala-2.x/scala/xml/CompilerErrors.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CompilerErrors extends CompilerTesting {
88
// the error message here differs a bit by Scala version
99
import util.Properties.versionNumberString
1010
val thing =
11-
if (versionNumberString.startsWith("2.11") || versionNumberString.startsWith("2.12")) "method value"
11+
if (versionNumberString.startsWith("2.12")) "method value"
1212
else "method"
1313
expectXmlError(s"""|overloaded $thing apply with alternatives:
1414
| (f: scala.xml.Node => Boolean)scala.xml.NodeSeq <and>

Diff for: ‎shared/src/main/scala/scala/xml/XML.scala

-5
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,3 @@ object XML extends XMLLoader[Elem] {
118118
w.write(Utility.serialize(node, minimizeTags = minimizeTags).toString)
119119
}
120120
}
121-
122-
object Properties extends scala.util.PropertiesTrait {
123-
protected def propCategory = "scala-xml"
124-
protected def pickJarBasedOn = classOf[scala.xml.Node]
125-
}

Diff for: ‎shared/src/test/scala/scala/xml/Properties.scala

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala
14+
package xml
15+
16+
object Properties extends util.PropertiesTrait {
17+
protected def propCategory = "scala-xml"
18+
protected def pickJarBasedOn = classOf[scala.xml.Node]
19+
}

0 commit comments

Comments
 (0)
Please sign in to comment.