Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1581,8 +1581,6 @@ class BeamModulePlugin implements Plugin<Project> {
"StringCaseLocaleUsage",
// DoFn methods are executed reflectively at pipeline runtime
"UnusedMethod",
// Void is a valid element type of DoFn elements
"VoidUsed",
]
disabledChecks.each {
options.errorprone.errorproneArgs.add("-Xep:${it}:OFF")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
/** Tests grouping with null values. */
public class GroupByWithNullValuesTest implements Serializable {

@SuppressWarnings("VoidUsed")
@Test
public void testGroupByWithNullValues() {
FlinkPipelineOptions options = FlinkPipelineOptions.defaults();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ public void testEncodeDecode() {

@Test
public void testNullKey() {
Void key = null;
VoidCoder coder = VoidCoder.of();

ByteBuffer byteBuffer = FlinkKeyUtils.encodeKey(key, coder);
ByteBuffer byteBuffer = FlinkKeyUtils.encodeKey(null, coder);
assertThat(FlinkKeyUtils.decodeKey(byteBuffer, coder), is(nullValue()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,9 @@ public void testSideInputAnnotationFailedValidationMissing() {
DoFn<Integer, List<Integer>> fn =
new DoFn<Integer, List<Integer>>() {
@ProcessElement
public void processElement(@SideInput(sideInputTag1) String tag1) {}
public void processElement(@SideInput(sideInputTag1) String tag1) {
ProcessContext c;
}
};

thrown.expect(IllegalArgumentException.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2615,7 +2615,7 @@ public DataSource apply(Void input) {
return instances.computeIfAbsent(
config.config,
ignored -> {
DataSource basicSource = config.apply(input);
DataSource basicSource = config.apply(null);
DataSourceConnectionFactory connectionFactory =
new DataSourceConnectionFactory(basicSource);
@SuppressWarnings("nullness") // apache.commons.dbcp2 not annotated
Expand Down
Loading