From c8d87f10f487eacdafa96fcdd03253bf24b72df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cardoso?= Date: Fri, 23 Aug 2024 15:58:58 +0100 Subject: [PATCH] Use -Xsource:3 --- build.sbt | 2 +- src/test/scala/org/uaparser/scala/CachingParserSpec.scala | 2 +- src/test/scala/org/uaparser/scala/ParserSpec.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 5fa8f89..978c34d 100644 --- a/build.sbt +++ b/build.sbt @@ -16,7 +16,7 @@ scalacOptions ++= Seq( val scala2Flags = Seq( "-Xlint:adapted-args", - "-Xsource:2.13.13", + "-Xsource:3", "-Ywarn-dead-code", "-Ywarn-numeric-widen", "-Ywarn-unused:imports" diff --git a/src/test/scala/org/uaparser/scala/CachingParserSpec.scala b/src/test/scala/org/uaparser/scala/CachingParserSpec.scala index 500b13c..d7cc7b7 100644 --- a/src/test/scala/org/uaparser/scala/CachingParserSpec.scala +++ b/src/test/scala/org/uaparser/scala/CachingParserSpec.scala @@ -3,6 +3,6 @@ package org.uaparser.scala import java.io.InputStream class CachingParserSpec extends ParserSpecBase { - val parser = CachingParser.default() + val parser: CachingParser = CachingParser.default() def createFromStream(stream: InputStream): UserAgentStringParser = CachingParser.fromInputStream(stream).get } diff --git a/src/test/scala/org/uaparser/scala/ParserSpec.scala b/src/test/scala/org/uaparser/scala/ParserSpec.scala index 2258ec2..1451643 100644 --- a/src/test/scala/org/uaparser/scala/ParserSpec.scala +++ b/src/test/scala/org/uaparser/scala/ParserSpec.scala @@ -3,6 +3,6 @@ package org.uaparser.scala import java.io.InputStream class ParserSpec extends ParserSpecBase { - val parser = Parser.default + val parser: Parser = Parser.default def createFromStream(stream: InputStream): UserAgentStringParser = Parser.fromInputStream(stream).get }