From 75dc2393ab65e8f91b25216b919f8ada2868ae1f Mon Sep 17 00:00:00 2001 From: Ivica Loncar Date: Mon, 12 Aug 2024 12:49:23 +0200 Subject: [PATCH] Fix scalafix error --- .../com/twitter/chill/SerializedExamplesData.scala | 2 +- .../src/test/scala/com/twitter/chill/ClosureCleanerSpec.scala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chill-scala/src/test/scala-2.13+/com/twitter/chill/SerializedExamplesData.scala b/chill-scala/src/test/scala-2.13+/com/twitter/chill/SerializedExamplesData.scala index d6f41d29..6b704bd6 100644 --- a/chill-scala/src/test/scala-2.13+/com/twitter/chill/SerializedExamplesData.scala +++ b/chill-scala/src/test/scala-2.13+/com/twitter/chill/SerializedExamplesData.scala @@ -18,7 +18,7 @@ package com.twitter.chill import scala.collection.JavaConverters import scala.collection.JavaConverters._ -import scala.collection.immutable.{ArraySeq, HashMap, HashSet, ListMap, ListSet, NumericRange, Queue} +import scala.collection.immutable.{ArraySeq, ListMap, ListSet, NumericRange, Queue} import scala.runtime.VolatileByteRef object SerializedExamplesData { diff --git a/chill-scala/src/test/scala/com/twitter/chill/ClosureCleanerSpec.scala b/chill-scala/src/test/scala/com/twitter/chill/ClosureCleanerSpec.scala index 2eef8a99..3f47b59c 100644 --- a/chill-scala/src/test/scala/com/twitter/chill/ClosureCleanerSpec.scala +++ b/chill-scala/src/test/scala/com/twitter/chill/ClosureCleanerSpec.scala @@ -92,7 +92,7 @@ class ClosureCleanerSpec extends AnyWordSpec with Matchers { Option(j).map(x => x + someSerializableMethod()) } val closure3 = (m: Int) => { - Option(m).foreach(x => Option(x).foreach(y => Option(y).foreach(z => someSerializableValue))) + Option(m).foreach(x => Option(x).foreach(y => Option(y).foreach(_ => someSerializableValue))) } serializableFn(closure1, before = false, after = true) @@ -110,7 +110,7 @@ class ClosureCleanerSpec extends AnyWordSpec with Matchers { Option(j).map(x => x + someSerializableMethod()) } val closure3 = (m: Int) => { - Option(m).foreach(x => Option(x).foreach(y => Option(y).foreach(z => someSerializableValue))) + Option(m).foreach(x => Option(x).foreach(y => Option(y).foreach(_ => someSerializableValue))) } serializableFn(closure1, before = false, after = false)