File tree Expand file tree Collapse file tree 12 files changed +9
-22
lines changed
js/src/main/scala/scala/util/parsing/input
main/scala/scala/util/parsing/input
test/scala/scala/util/parsing/combinator
main/scala/scala/util/parsing
test/scala/scala/util/parsing/combinator Expand file tree Collapse file tree 12 files changed +9
-22
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import ScalaModulePlugin._
22
33scalaVersionsByJvm in ThisBuild := {
44 val v211 = " 2.11.12"
5- val v212 = " 2.12.4 "
5+ val v212 = " 2.12.6 "
66 val v213 = " 2.13.0-M3"
77
88 Map (
Original file line number Diff line number Diff line change 11package scala .util .parsing .input
22
3- import java .lang .CharSequence
43import java .util .{AbstractMap , Collections }
54
65private [input] trait PositionCache {
Original file line number Diff line number Diff line change 11package scala .util .parsing .input
22
3- import java .lang .{CharSequence , ThreadLocal }
43import java .util .WeakHashMap
54
65/**
Original file line number Diff line number Diff line change 11import scala .util .parsing .json ._
22import java .util .concurrent ._
3- import collection .JavaConversions ._
3+ import collection .JavaConverters ._
44
55import org .junit .Test
66
@@ -36,6 +36,6 @@ class t4929 {
3636 thread.setDaemon(true )
3737 thread.start()
3838 }
39- errors foreach { throw (_) }
39+ errors.asScala foreach { throw (_) }
4040 }
4141}
Original file line number Diff line number Diff line change 1- addSbtPlugin(" org.scala-lang.modules" % " sbt-scala-module" % " 1.0.13 " )
1+ addSbtPlugin(" org.scala-lang.modules" % " sbt-scala-module" % " 1.0.14 " )
22
3- addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.22" )
3+ addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.22" )
Original file line number Diff line number Diff line change 1010package scala
1111package util .parsing .combinator
1212
13- import java .util .regex .Pattern
1413import scala .util .matching .Regex
1514import scala .util .parsing .input ._
1615import scala .language .implicitConversions
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ package scala
1010package util .parsing .input
1111
1212import scala .collection .mutable .ArrayBuffer
13- import java .lang .{CharSequence , ThreadLocal }
14- import java .util .WeakHashMap
1513
1614/** `OffsetPosition` is a standard class for positions
1715 * represented as offsets into a source ``document''.
Original file line number Diff line number Diff line change 99package scala
1010package util .parsing .input
1111
12- import java .io .BufferedReader
13-
1412/** An object to create a `StreamReader` from a `java.io.Reader`.
1513 *
1614 * @author Miles Sabin
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ class UnitTestIO {
1717 val expected = " a" -> " \" "
1818
1919 val parsed = scala.util.parsing.json.JSON .parseFull(test)
20- val result = parsed == Some (Map (expected))
2120 assertEquals(Some (Map (expected)), parsed)
2221 }
2322
@@ -29,4 +28,4 @@ class UnitTestIO {
2928 f.copyToBuffer(b)
3029 assertEquals(new String (b.toArray), s)
3130 }
32- }
31+ }
Original file line number Diff line number Diff line change 11package scala .util .parsing .combinator
22
3+ import scala .language .postfixOps
4+ import scala .util .parsing .combinator .syntactical .StandardTokenParsers
5+
36import org .junit .Assert .{assertEquals , assertTrue }
47import org .junit .Test
58
6- import scala .util .parsing .combinator .syntactical .StandardTokenParsers
7-
89/**
910 * Test for issue 56: https://github.com/scala/scala-parser-combinators/issues/56
1011 *
You can’t perform that action at this time.
0 commit comments