From 8d1576a5d6335a8188b3a2b26fc598749aa775c4 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 30 Jul 2024 05:39:29 +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 1fc4569a3..3b0265752 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version=3.8.0 +version=3.8.3 runner.dialect = scala212 fileOverride { "glob:**/scala-2.13*/**" { From 7abeeb974bbf38e1040e680eb9885d1b37c68fb5 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 30 Jul 2024 05:40:20 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.8.3 Executed command: scalafmt --non-interactive --- .../src/main/scala/com/twitter/algebird/JavaMonoids.scala | 2 +- algebird-core/src/main/scala/com/twitter/algebird/Ring.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/algebird-core/src/main/scala/com/twitter/algebird/JavaMonoids.scala b/algebird-core/src/main/scala/com/twitter/algebird/JavaMonoids.scala index 5fc8d6dc4..fd65ddb87 100644 --- a/algebird-core/src/main/scala/com/twitter/algebird/JavaMonoids.scala +++ b/algebird-core/src/main/scala/com/twitter/algebird/JavaMonoids.scala @@ -40,7 +40,7 @@ object JShortRing extends Ring[JShort] { override val zero: JShort = Short.box(0) override val one: JShort = Short.box(1) override def plus(x: JShort, y: JShort): JShort = (x + y).toShort - override def negate(x: JShort): JShort = (-x).toShort + override def negate(x: JShort): JShort = -x.toShort override def minus(x: JShort, y: JShort): JShort = (x - y).toShort override def times(x: JShort, y: JShort): JShort = (x * y).toShort } diff --git a/algebird-core/src/main/scala/com/twitter/algebird/Ring.scala b/algebird-core/src/main/scala/com/twitter/algebird/Ring.scala index 3ebfc547c..f001a1d16 100755 --- a/algebird-core/src/main/scala/com/twitter/algebird/Ring.scala +++ b/algebird-core/src/main/scala/com/twitter/algebird/Ring.scala @@ -92,7 +92,7 @@ object IntRing extends Ring[Int] { object ShortRing extends Ring[Short] { override def zero: Short = 0.toShort override def one: Short = 1.toShort - override def negate(v: Short): Short = (-v).toShort + override def negate(v: Short): Short = -v.toShort override def plus(l: Short, r: Short): Short = (l + r).toShort override def minus(l: Short, r: Short): Short = (l - r).toShort override def times(l: Short, r: Short): Short = (l * r).toShort From 0d1373d78363602a562e717ac18b0ec632ed98a0 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 30 Jul 2024 05:40:20 +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 000000000..74174a1ec --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.8.3 +7abeeb974bbf38e1040e680eb9885d1b37c68fb5