diff --git a/build.sbt b/build.sbt index 1cce0a1b..80634f4b 100644 --- a/build.sbt +++ b/build.sbt @@ -29,7 +29,7 @@ val bigqueryVersion = "v2-rev20241013-2.0.0" val bigtableVersion = "2.51.0" val catsVersion = "2.12.0" val datastoreVersion = "2.25.1" -val guavaVersion = "33.3.1-jre" +val guavaVersion = "33.4.0-jre" val hadoopVersion = "3.4.1" val jacksonVersion = "2.18.2" val jodaTimeVersion = "2.13.0" diff --git a/guava/src/main/scala/magnolify/guava/semiauto/FunnelDerivation.scala b/guava/src/main/scala/magnolify/guava/semiauto/FunnelDerivation.scala index 2a737756..e031599c 100644 --- a/guava/src/main/scala/magnolify/guava/semiauto/FunnelDerivation.scala +++ b/guava/src/main/scala/magnolify/guava/semiauto/FunnelDerivation.scala @@ -16,9 +16,10 @@ package magnolify.guava.semiauto -import com.google.common.base.Charsets import com.google.common.hash.{Funnel, Funnels, PrimitiveSink} -import magnolia1._ +import magnolia1.* + +import java.nio.charset.StandardCharsets object FunnelDerivation { type Typeclass[T] = Funnel[T] @@ -29,7 +30,7 @@ object FunnelDerivation { val p = caseClass.parameters.head p.typeclass.funnel(p.dereference(from), into) } else if (caseClass.parameters.isEmpty) { - val _ = into.putString(caseClass.typeName.short, Charsets.UTF_8) + val _ = into.putString(caseClass.typeName.short, StandardCharsets.UTF_8) } else { caseClass.parameters.foreach { p => // inject index to distinguish cases like `(Some(1), None)` and `(None, Some(1))`