Skip to content

Commit 63d3c8f

Browse files
committedMar 17, 2020
Fix lint warnings
1 parent b771a45 commit 63d3c8f

File tree

4 files changed

+2
-22
lines changed

4 files changed

+2
-22
lines changed
 

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

-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
package scala.xml
22

3-
import language.postfixOps
4-
53
import org.junit.{Test => UnitTest}
6-
import org.junit.Assert.assertTrue
7-
import org.junit.Assert.assertFalse
84
import org.junit.Assert.assertEquals
95
import scala.xml.parsing.ConstructingParser
10-
import java.io.StringWriter
11-
import java.io.ByteArrayOutputStream
12-
import java.io.StringReader
13-
import scala.collection.Iterable
14-
import scala.collection.Seq
15-
import scala.xml.Utility.sort
166

177
class XMLTestJVM2x {
188
@UnitTest

Diff for: ‎shared/src/test/scala-2.x/scala/xml/ShouldCompile.scala

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ package scala.xml
33
// these tests depend on xml, so they ended up here,
44
// though really they are compiler tests
55

6-
import scala.collection._
7-
import scala.collection.mutable.ArrayBuffer
8-
96
// t1626
107
object o {
118
val n = <a xmlns=""/>

Diff for: ‎shared/src/test/scala-2.x/scala/xml/XMLTest2x.scala

-8
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,7 @@ import language.postfixOps
44

55
import org.junit.{Test => UnitTest}
66
import org.junit.Assert.assertTrue
7-
import org.junit.Assert.assertFalse
87
import org.junit.Assert.assertEquals
9-
import scala.xml.parsing.ConstructingParser
10-
import java.io.StringWriter
11-
import java.io.ByteArrayOutputStream
12-
import java.io.StringReader
13-
import scala.collection.Iterable
14-
import scala.collection.Seq
15-
import scala.xml.Utility.sort
168

179
class XMLTest2x {
1810
// t-486

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ Ours is the portal of hope, come as you are."
538538

539539
@UnitTest
540540
def i1976: Unit = {
541-
val node = <node>{ "whatever " }</node>
541+
val node = <node>{ "whatever " }</node>
542+
assertEquals("whatever", node.child.text)
542543
}
543544

544545
@UnitTest

0 commit comments

Comments
 (0)