From 91609f4be6258ab10cbaffff2a91c445929d734b Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 30 Mar 2024 15:17:57 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.8.1 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/**" { From 68e13f0efcbb9a921aa9fa1dffc9645d839f0df1 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 30 Mar 2024 15:18:12 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.8.1 Executed command: scalafmt --non-interactive --- .../binary/JavaSerializationAnyRefCodec.scala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 => From 9f8b18407d769b55ca240424030abd8cc3d62541 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 30 Mar 2024 15:18:12 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.8.1' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .git-blame-ignore-revs 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