Skip to content

Commit a68e80e

Browse files
committed
Fix 2.12+ MiMa errors
- method oneOf(Seq)Gen in object Gen's type is different in current version, where it is (immutable.Seq)Gen instead of (Seq)Gen - method sequence(Traversable,util.Buildable)Gen in object Gen's type is different in current version, where it is (Iterable,util.Buildable)Gen instead of (Traversable,util.Buildable)Gen - method properties()Seq in class Properties has a different result type in current version, where it is immutable.Seq rather than Seq - method checkProperties(Test#Parameters,Properties)Seq in object Test has a different result type in current version, where it is immutable.Seq rather than Seq - method canCreateNewSut(java.lang.Object,Traversable,Traversable)Boolean in interface commands.Commands's type is different in current version, where it is (java.lang.Object,Iterable,Iterable)Boolean instead of (java.lang.Object,Traversable,Traversable)Boolean - abstract method canCreateNewSut(java.lang.Object,Iterable,Iterable)Boolean in interface commands.Commands is present only in current version - method fromIterable(Traversable)java.lang.Object in interface util.Buildable's type is different in current version, where it is (Iterable)java.lang.Object instead of (Traversable)java.lang.Object
1 parent 88c291d commit a68e80e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

project/MimaSettings.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ object MimaSettings {
1212
removedPrivateMethods.map(exclude[DirectMissingMethodProblem](_)) ++
1313
newMethods.map(exclude[ReversedMissingMethodProblem](_)) ++
1414
removedPrivateClasses.map(exclude[MissingClassProblem](_)) ++
15+
methodTypeChanges.map(exclude[IncompatibleMethTypeProblem](_)) ++
16+
returnTypeChanges.map(exclude[IncompatibleResultTypeProblem](_)) ++
1517
otherProblems
1618
)
1719

1820
private def newMethods = Seq(
21+
"org.scalacheck.commands.Commands.canCreateNewSut"
1922
)
2023

2124
private def removedPrivateMethods = Seq(
@@ -25,6 +28,18 @@ object MimaSettings {
2528
"org.scalacheck.Platform$EnableReflectiveInstantiation"
2629
)
2730

31+
private def methodTypeChanges = Seq(
32+
"org.scalacheck.Gen.oneOf",
33+
"org.scalacheck.Gen.sequence",
34+
"org.scalacheck.commands.Commands.canCreateNewSut",
35+
"org.scalacheck.util.Buildable.fromIterable"
36+
)
37+
38+
private def returnTypeChanges = Seq(
39+
"org.scalacheck.Properties.properties",
40+
"org.scalacheck.Test.checkProperties"
41+
)
42+
2843
private def otherProblems = Seq(
2944
)
3045

0 commit comments

Comments
 (0)