From 6c90b499ff88b43a9ebee3d73afcdfcb874915ec Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Mon, 29 Jul 2024 11:13:53 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.8.3 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/**" { From d6fd43d3fcc18083b2c7d0286a96be043a8f3757 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Mon, 29 Jul 2024 11:14:08 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.8.3 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 cea6a83ab5ae7a3b17c39404b1ad3f596851b5de Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Mon, 29 Jul 2024 11:14:08 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.8.3' 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..19e328a1 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.8.3 +d6fd43d3fcc18083b2c7d0286a96be043a8f3757