Skip to content

Commit 33b239d

Browse files
committed
spotless.
1 parent d8b9e07 commit 33b239d

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/DoFnTester.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,8 @@ public <T> void output(TupleTag<T> tag, T output, Instant timestamp, BoundedWind
497497
PaneInfo.NO_FIRING,
498498
null,
499499
null,
500-
CausedByDrain.NORMAL, null));
500+
CausedByDrain.NORMAL,
501+
null));
501502
}
502503
};
503504
}
@@ -641,7 +642,8 @@ public <T> void outputWithTimestamp(TupleTag<T> tag, T output, Instant timestamp
641642
element.getPaneInfo(),
642643
null,
643644
null,
644-
CausedByDrain.NORMAL, null));
645+
CausedByDrain.NORMAL,
646+
null));
645647
}
646648

647649
@Override

sdks/java/core/src/main/java/org/apache/beam/sdk/values/ValueInSingleWindow.java

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,14 @@ public static <T> ValueInSingleWindow<T> of(
8282
CausedByDrain causedByDrain,
8383
@Nullable Context openTelemetryContext) {
8484
return new AutoValue_ValueInSingleWindow<>(
85-
value, timestamp, window, paneInfo, currentRecordId, currentRecordOffset, causedByDrain, openTelemetryContext);
85+
value,
86+
timestamp,
87+
window,
88+
paneInfo,
89+
currentRecordId,
90+
currentRecordOffset,
91+
causedByDrain,
92+
openTelemetryContext);
8693
}
8794

8895
public static <T> ValueInSingleWindow<T> of(
@@ -116,7 +123,8 @@ public void encode(ValueInSingleWindow<T> windowedElem, OutputStream outStream)
116123
}
117124

118125
@Override
119-
public void encode(ValueInSingleWindow<T> windowedElem, OutputStream outStream, Coder.Context context)
126+
public void encode(
127+
ValueInSingleWindow<T> windowedElem, OutputStream outStream, Coder.Context context)
120128
throws IOException {
121129
InstantCoder.of().encode(windowedElem.getTimestamp(), outStream);
122130
windowCoder.encode(windowedElem.getWindow(), outStream);
@@ -153,7 +161,7 @@ public ValueInSingleWindow<T> decode(InputStream inStream, Coder.Context context
153161
BoundedWindow window = windowCoder.decode(inStream);
154162
PaneInfo paneInfo = PaneInfo.PaneInfoCoder.INSTANCE.decode(inStream);
155163
CausedByDrain causedByDrain = CausedByDrain.NORMAL;
156-
io.opentelemetry.context. @Nullable Context openTelemetryContext = null;
164+
io.opentelemetry.context.@Nullable Context openTelemetryContext = null;
157165
if (WindowedValues.WindowedValueCoder.isMetadataSupported() && paneInfo.isElementMetadata()) {
158166
BeamFnApi.Elements.ElementMetadata elementMetadata =
159167
BeamFnApi.Elements.ElementMetadata.parseFrom(ByteArrayCoder.of().decode(inStream));
@@ -166,7 +174,8 @@ public ValueInSingleWindow<T> decode(InputStream inStream, Coder.Context context
166174

167175
T value = valueCoder.decode(inStream, context);
168176
// todo #33176 specify additional metadata in the future
169-
return new AutoValue_ValueInSingleWindow<>(value, timestamp, window, paneInfo, null, causedByDrain, openTelemetryContext);
177+
return new AutoValue_ValueInSingleWindow<>(
178+
value, timestamp, window, paneInfo, null, null, causedByDrain, openTelemetryContext);
170179
}
171180

172181
@Override

sdks/java/core/src/main/java/org/apache/beam/sdk/values/WindowedValues.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public static <T> WindowedValue<T> of(
339339
T value, Instant timestamp, BoundedWindow window, PaneInfo paneInfo) {
340340
checkArgument(paneInfo != null, "WindowedValue requires PaneInfo, but it was null");
341341

342-
return of(value, timestamp, window, paneInfo, CausedByDrain.NORMAL, null);
342+
return of(value, timestamp, window, paneInfo, null, null, CausedByDrain.NORMAL, null);
343343
}
344344

345345
/** Returns a {@code WindowedValue} with the given value, timestamp, and window. */
@@ -384,7 +384,8 @@ public static <T> WindowedValue<T> of(
384384
* default timestamp and pane.
385385
*/
386386
public static <T> WindowedValue<T> valueInGlobalWindow(T value) {
387-
return new ValueInGlobalWindow<>(value, PaneInfo.NO_FIRING, null, null, CausedByDrain.NORMAL, null);
387+
return new ValueInGlobalWindow<>(
388+
value, PaneInfo.NO_FIRING, null, null, CausedByDrain.NORMAL, null);
388389
}
389390

390391
/**

sdks/java/core/src/test/java/org/apache/beam/sdk/util/WindowedValueTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ public void testWindowedValueWithElementMetadataCoder() throws CoderException {
109109
PaneInfo.NO_FIRING,
110110
null,
111111
null,
112-
CausedByDrain.CAUSED_BY_DRAIN, context); // drain is persisted as part of metadata
112+
CausedByDrain.CAUSED_BY_DRAIN,
113+
context); // drain is persisted as part of metadata
113114

114115
Coder<WindowedValue<String>> windowedValueCoder =
115116
WindowedValues.getFullCoder(StringUtf8Coder.of(), IntervalWindow.getCoder());

0 commit comments

Comments
 (0)