From 5fceaca9dba19a5e75470f1001dac652e68ce1ad Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sun, 16 Jun 2024 14:06:34 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.8.2 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index 70277b06..ec73f0f4 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,6 +1,6 @@ align.preset = "more" maxColumn = 120 -version = "3.1.2" +version = "3.8.2" runner.dialect = scala213 fileOverride { "glob:**/src/main/scala-3/**" { From 0fa672cce36242c48a2a69a593c70539c2031bcb Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sun, 16 Jun 2024 14:06:46 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.8.2 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 13adc714b2a5eeab40aa9725e9521f7b0ebbd042 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sun, 16 Jun 2024 14:06:46 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.8.2' 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..cdb015d8 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.8.2 +0fa672cce36242c48a2a69a593c70539c2031bcb