Skip to content

Commit

Permalink
Update scalafmt-core to 3.8.3 (#135)
Browse files Browse the repository at this point in the history
* Update scalafmt-core to 3.8.3

* Reformat with scalafmt 3.8.3

Executed command: scalafmt --non-interactive

* Add 'Reformat with scalafmt 3.8.3' to .git-blame-ignore-revs
  • Loading branch information
scala-steward authored Jul 30, 2024
1 parent fce16c7 commit c3c11a5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ fade5fe3272078547e5ca2a7ef80a085a8d24b24

# Scala Steward: Reformat with scalafmt 3.8.2
0931a26c8728f0f02202ce0a73085e6034110dd4

# Scala Steward: Reformat with scalafmt 3.8.3
263d8f24393c0607dddc5a3b8cd2fbc1f0de0141
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
style = defaultWithAlign
maxColumn = 120
version = 3.8.2
version = 3.8.3
assumeStandardLibraryStripMargin = true
align.stripMargin = true
runner.dialect = scala3
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ class OptionSerializer[A](val elemSerializer: TypeSerializer[A]) extends TypeSer
}
}

override def hashCode(): Int =
elemSerializer.hashCode()
override def hashCode(): Int =
elemSerializer.hashCode()

// --------------------------------------------------------------------------------------------
// Serializer configuration snapshotting & compatibility
// --------------------------------------------------------------------------------------------

override def snapshotConfiguration(): TypeSerializerSnapshot[Option[A]] =
new ScalaOptionSerializerSnapshot[A](this)
new ScalaOptionSerializerSnapshot[A](this)
}
4 changes: 2 additions & 2 deletions src/test/scala/org/apache/flinkx/api/CatsTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import org.apache.flinkx.api.serializers._

class CatsTest extends AnyFlatSpec with Matchers with TestUtils {
implicit val stringListTi: TypeInformation[NonEmptyList[String]] = deriveTypeInformation
implicit val intListTi: TypeInformation[NonEmptyList[Int]] = deriveTypeInformation
implicit val intListTi: TypeInformation[NonEmptyList[Int]] = deriveTypeInformation

def createSerializer[T: TypeInformation] =
def createSerializer[T: TypeInformation] =
implicitly[TypeInformation[T]].createSerializer(new ExecutionConfig())

it should "derive for NEL[String]" in {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import java.io.ByteArrayOutputStream
import java.nio.file.{Files, Path}

class SchemaEvolutionTest extends AnyFlatSpec with Matchers {
private implicit val eventTypeInfo: TypeInformation[Event] = deriveTypeInformation[Event]
private implicit val eventTypeInfo: TypeInformation[Event] = deriveTypeInformation[Event]
private implicit val arityTestInfo: TypeInformation[NoArityTest] = deriveTypeInformation[NoArityTest]
private val clicks =
List(ClickEvent("a", "2021-01-01"), ClickEvent("b", "2021-01-01"), ClickEvent("c", "2021-01-01"))

def createSerializer[T: TypeInformation] =
def createSerializer[T: TypeInformation] =
implicitly[TypeInformation[T]].createSerializer(new ExecutionConfig())

ignore should "generate blob for event=click+purchase" in {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import java.net.URLClassLoader

class SerializerSnapshotTest extends AnyFlatSpec with Matchers {

def createSerializer[T: TypeInformation] =
def createSerializer[T: TypeInformation] =
implicitly[TypeInformation[T]].createSerializer(new ExecutionConfig())

it should "roundtrip product serializer snapshot" in {
Expand Down

0 comments on commit c3c11a5

Please sign in to comment.