diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..19e328a1 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.8.3 +d6fd43d3fcc18083b2c7d0286a96be043a8f3757 diff --git a/.scalafmt.conf b/.scalafmt.conf index 70277b06..27851c6f 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,6 +1,6 @@ align.preset = "more" maxColumn = 120 -version = "3.1.2" +version = "3.8.3" runner.dialect = scala213 fileOverride { "glob:**/src/main/scala-3/**" { diff --git a/modules/core/src/main/scala/scalacache/serialization/binary/JavaSerializationAnyRefCodec.scala b/modules/core/src/main/scala/scalacache/serialization/binary/JavaSerializationAnyRefCodec.scala index c129a691..14670915 100644 --- a/modules/core/src/main/scala/scalacache/serialization/binary/JavaSerializationAnyRefCodec.scala +++ b/modules/core/src/main/scala/scalacache/serialization/binary/JavaSerializationAnyRefCodec.scala @@ -31,10 +31,11 @@ class JavaSerializationAnyRefCodec[S <: Serializable](classTag: ClassTag[S]) ext def using[T <: Closeable, R](obj: T)(f: T => R): R = try f(obj) - finally try obj.close() - catch { - case NonFatal(_) => // does nothing - } + finally + try obj.close() + catch { + case NonFatal(_) => // does nothing + } def encode(value: S): Array[Byte] = using(new ByteArrayOutputStream()) { buf =>