Skip to content

Commit

Permalink
Update guava to 33.4.0-jre (#1088)
Browse files Browse the repository at this point in the history
Co-authored-by: Michel Davit <[email protected]>
  • Loading branch information
scala-steward and RustedBones authored Dec 18, 2024
1 parent 03985d7 commit 904655c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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))`
Expand Down

0 comments on commit 904655c

Please sign in to comment.