File tree 1 file changed +0
-16
lines changed
test/junit/scala/tools/testing
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 1
1
package scala .tools
2
2
package testing
3
3
4
- import org .junit .Assert
5
- import Assert ._
6
- import scala .reflect .ClassTag
7
- import scala .runtime .ScalaRunTime .stringOf
8
- import scala .collection .GenIterable
9
- import scala .collection .JavaConverters ._
10
- import scala .collection .mutable
11
- import scala .tools .nsc .settings .ScalaVersion
12
- import scala .util .Properties .javaSpecVersion
13
4
import java .lang .ref ._
14
5
import java .lang .reflect .{Field , Modifier }
15
6
import java .util .IdentityHashMap
@@ -123,11 +114,4 @@ object AssertUtil {
123
114
body
124
115
roots.foreach(assertNoRef)
125
116
}
126
-
127
- private [this ] val version8 = ScalaVersion (" 8" )
128
-
129
- /** Assert on Java 8, but on later versions, just print if assert would fail. */
130
- def assert8 (b : => Boolean , msg : => Any ) =
131
- if (ScalaVersion (javaSpecVersion) == version8) assert(b, msg)
132
- else if (! b) println(s " assert not $msg" )
133
117
}
You can’t perform that action at this time.
0 commit comments