File tree Expand file tree Collapse file tree 6 files changed +13
-10
lines changed
core/src/main/scala/com/typesafe/tools/mima/core Expand file tree Collapse file tree 6 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 19
19
with :
20
20
java-version : ${{ matrix.java }}
21
21
- uses : coursier/cache-action@v6
22
- - run : " sbt test mimaReportBinaryIssues 'set sbtplugin/scriptedSbt := \" 1.2.8\" ' 'scripted sbt-mima-plugin/minimal'"
22
+ - run : " sbt + test mimaReportBinaryIssues 'set sbtplugin/scriptedSbt := \" 1.2.8\" ' 'scripted sbt-mima-plugin/minimal'"
23
23
testFunctional :
24
24
needs : build
25
25
strategy :
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ commands += Command.command("testStaging") { state =>
26
26
}
27
27
28
28
val scala213 = " 2.13.6"
29
+ val scala3 = " 3.0.2"
29
30
30
31
val root = project.in(file(" ." )).settings(
31
32
name := " mima" ,
@@ -39,7 +40,7 @@ val munit = "org.scalameta" %% "munit" % "0.7.29"
39
40
40
41
val core = project.settings(
41
42
name := " mima-core" ,
42
- crossScalaVersions += scala213,
43
+ crossScalaVersions ++= Seq ( scala213, scala3) ,
43
44
libraryDependencies += munit % Test ,
44
45
testFrameworks += new TestFramework (" munit.Framework" ),
45
46
MimaSettings .mimaSettings,
Original file line number Diff line number Diff line change @@ -279,11 +279,12 @@ object MimaUnpickler {
279
279
var idx = 0
280
280
var res = 0L
281
281
var b = 0L
282
- do {
282
+ while ( {
283
283
b = data(idx).toLong
284
284
idx += 1
285
285
res = (res << 7 ) + (b & 0x7f )
286
- } while ((b & 0x80 ) != 0L )
286
+ (b & 0x80 ) != 0L
287
+ }) ()
287
288
res.toInt
288
289
}
289
290
Original file line number Diff line number Diff line change @@ -12,10 +12,11 @@ final class PickleBuffer(val bytes: Array[Byte]) {
12
12
def readLongNat (): Long = {
13
13
var b = 0L
14
14
var x = 0L
15
- do {
15
+ while ( {
16
16
b = readByte().toLong
17
17
x = (x << 7 ) + (b & 0x7f )
18
- } while ((b & 0x80 ) != 0L )
18
+ (b & 0x80 ) != 0L
19
+ }) ()
19
20
x
20
21
}
21
22
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ class Signature(private val signature: String) {
30
30
newer.isEmpty || // ignore losing signature on constructors
31
31
signature.endsWith(newer.tail) // ignore losing the 1st (outer) param (.tail drops the leading '(')
32
32
33
- // a method that takes no parameters and returns Object can have no signature
34
- override def toString = if (signature.isEmpty) " <missing>" else signature
33
+ // a method that takes no parameters and returns Object can have no signature
34
+ override def toString = if (signature.isEmpty) " <missing>" else signature
35
35
}
36
36
37
37
object Signature {
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ object TastyUnpickler {
122
122
if (nextByte == SELFDEF ) skipTree(readByte()) // self
123
123
val classes = new ListBuffer [ClsDef ]
124
124
val meths = new ListBuffer [DefDef ]
125
- doUntil(end)(readByte match {
125
+ doUntil(end)(readByte() match {
126
126
case TYPEDEF => readTypeDef() match { case clsDef : ClsDef => classes += clsDef case _ => }
127
127
case DEFDEF => meths += readDefDef()
128
128
case tag => skipTree(tag)
@@ -354,7 +354,7 @@ object TastyUnpickler {
354
354
355
355
final case class SimpleName (raw : String ) extends Name
356
356
final case class ObjectName (base : Name ) extends Name
357
- final case class TypeName private (base : Name ) extends Name
357
+ final case class TypeName private [ TastyUnpickler ] (base : Name ) extends Name
358
358
final case class QualifiedName (qual : Name , sep : SimpleName , sel : SimpleName ) extends Name
359
359
360
360
final case class UniqueName (qual : Name , sep : SimpleName , num : Int ) extends Name
You can’t perform that action at this time.
0 commit comments