Skip to content

Commit 5ce912c

Browse files
Update scalafmt-core to 3.9.10 (flink-extended#287)
* Update scalafmt-core to 3.9.10 * Reformat with scalafmt 3.9.10 Executed command: scalafmt --non-interactive * Add 'Reformat with scalafmt 3.9.10' to .git-blame-ignore-revs
1 parent 0e78de9 commit 5ce912c

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ a82026bb66f0e17cf76f2d91c6ea286431bbbd31
4242

4343
# Scala Steward: Reformat with scalafmt 3.9.9
4444
b83264042216c7d83b73247b8b7a998902ec26d5
45+
46+
# Scala Steward: Reformat with scalafmt 3.9.10
47+
7d900f00d9e3f23f45fca7989ae6a4c1c75580c7

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = defaultWithAlign
22
maxColumn = 120
3-
version = 3.9.9
3+
version = 3.9.10
44
assumeStandardLibraryStripMargin = true
55
align.stripMargin = true
66
runner.dialect = scala3

modules/flink-common-api/src/main/scala/org/apache/flinkx/api/function/util/WrappingFunction.scala

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ package org.apache.flinkx.api.function.util
33
import org.apache.flink.api.common.functions.util.FunctionUtils
44
import org.apache.flink.api.common.functions.{AbstractRichFunction, Function, OpenContext, RuntimeContext}
55

6-
7-
/**
8-
* Wrapper of [[Function]].
9-
*
10-
* Created to replace `org.apache.flink.api.java.operators.translation.WrappingFunction` in Flink 1.x that was moved to
11-
* `org.apache.flink.api.common.functions.WrappingFunction` in Flink 2.x making it not cross-compatible.
12-
*
13-
* @tparam T the type of the wrapped function.
14-
* @param wrappedFunction the underlying function to be wrapped.
15-
*/
6+
/** Wrapper of [[Function]].
7+
*
8+
* Created to replace `org.apache.flink.api.java.operators.translation.WrappingFunction` in Flink 1.x that was moved to
9+
* `org.apache.flink.api.common.functions.WrappingFunction` in Flink 2.x making it not cross-compatible.
10+
*
11+
* @tparam T
12+
* the type of the wrapped function.
13+
* @param wrappedFunction
14+
* the underlying function to be wrapped.
15+
*/
1616
class WrappingFunction[T <: Function](val wrappedFunction: T) extends AbstractRichFunction {
1717

1818
override def open(openContext: OpenContext): Unit = {

modules/flink-common-api/src/main/scala/org/apache/flinkx/api/serializer/ListSerializer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ListSerializer[T](child: TypeSerializer[T], clazz: Class[T]) extends Mutab
2828
override def getLength: Int = -1
2929
override def deserialize(source: DataInputView): List[T] = {
3030
var remaining = source.readInt()
31-
val builder = List.newBuilder[T]
31+
val builder = List.newBuilder[T]
3232
builder.sizeHint(remaining)
3333
while (remaining > 0) {
3434
builder.addOne(child.deserialize(source))

modules/flink-common-api/src/test/scala/org/apache/flinkx/api/SerializerSnapshotTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class SerializerSnapshotTest extends AnyFlatSpec with Matchers {
156156
.readVersionedSnapshot[WithDefault](input, getClass.getClassLoader) // Flink always calls this
157157

158158
// Deserialize the old data with the new serializer
159-
val newSerializer = implicitly[TypeSerializer[WithDefault]]
159+
val newSerializer = implicitly[TypeSerializer[WithDefault]]
160160
val deserializedData = newSerializer.deserialize(input)
161161
deserializedData should be(expectedData)
162162

modules/flink-common-api/src/test/scala/org/apache/flinkx/api/TestUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ trait TestUtils extends Matchers with Inspectors {
158158

159159
@tailrec
160160
private def getAllFields[T](typeClass: Class[T], fields: Array[Field] = Array.empty): Array[Field] = {
161-
val allFields = fields ++ typeClass.getDeclaredFields
161+
val allFields = fields ++ typeClass.getDeclaredFields
162162
.filter(isInstanceField)
163163
.filter(isNotBitmapField)
164164
.filter(isNotOverriddenField(_, fields))

0 commit comments

Comments
 (0)