Skip to content

Commit

Permalink
Merge pull request #323 from theiterators/move-to-2.13.12-and-remove-…
Browse files Browse the repository at this point in the history
…compile-warnings

Move to 2.13.12 and remove compile warnings
  • Loading branch information
pk044 committed Oct 16, 2023
2 parents 097f281 + c96d6e5 commit 66d3df6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .sbtopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-J-Xmx6G
-J-Xss2M
-Duser.timezone=GMT
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sbt.librarymanagement.ConflictWarning

val scala_2_12 = "2.12.18"
val scala_2_13 = "2.13.11"
val scala_2_13 = "2.13.12"
val scala_3 = "3.3.1"
val mainScalaVersion = scala_3
val supportedScalaVersions = Seq(scala_2_12, scala_2_13, scala_3)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package pl.iterators.kebs.scalacheck

import org.scalacheck.Arbitrary
import pl.iterators.kebs.scalacheck.CommonArbitrarySupport

trait Generator[T] extends CommonArbitrarySupport {
def ArbT: Arbitrary[T]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ trait KebsArbitraryPredefs {
}
})

implicit val arbUrl: Arbitrary[URL] = Arbitrary {
implicit val arbUri: Arbitrary[URI] = Arbitrary {
for {
protocol <- Gen.oneOf("http", "https", "ftp", "file")
domain <- Gen.alphaNumStr
protocol <- Gen.oneOf("http", "https", "ftp", "file")
domain <- Gen.alphaNumStr
subdomain <- Gen.alphaNumStr
path <- Gen.alphaNumStr
} yield new URL(s"$protocol://$subdomain.$domain.test/$path")
path <- Gen.alphaNumStr
} yield new URI(s"$protocol://$subdomain.$domain.test/$path")
}

implicit val arbUri: Arbitrary[URI] = Arbitrary(arbUrl.arbitrary.map(_.toURI))
implicit val arbUrl: Arbitrary[URL] = Arbitrary(arbUri.arbitrary.map(_.toURL))

}
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ final class macroImpl(val c: whitebox.Context) {
val implicitName = TermName(name.decodedName.toString + "CaseClass1Rep")

if (typeParams.isEmpty)
q"implicit val $implicitName = $caseClass1RepInstanceTree"
q"implicit val $implicitName: _root_.pl.iterators.kebs.macros.CaseClass1Rep[$selfType, $baseTypeName[..$baseParams]] = $caseClass1RepInstanceTree"
else
q"implicit def $implicitName[..$typeParams] = $caseClass1RepInstanceTree"
q"implicit def $implicitName[..$typeParams]: _root_.pl.iterators.kebs.macros.CaseClass1Rep[$selfType, $baseTypeName[..$baseParams]] = $caseClass1RepInstanceTree"
}

private def containsApply(trees: List[Tree]): Boolean = {
Expand Down

0 comments on commit 66d3df6

Please sign in to comment.