diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..8e89fce7 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.8.1 +68e13f0efcbb9a921aa9fa1dffc9645d839f0df1 diff --git a/.scalafmt.conf b/.scalafmt.conf index 70277b06..973d63d9 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,6 +1,6 @@ align.preset = "more" maxColumn = 120 -version = "3.1.2" +version = "3.8.1" 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 =>