Skip to content

Commit 7d900f0

Browse files
committed
Reformat with scalafmt 3.9.10
Executed command: scalafmt --non-interactive
1 parent 5fc1744 commit 7d900f0

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

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)