Skip to content

Commit

Permalink
Remove unnecessary annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Amar3tto committed Feb 28, 2024
1 parent 165f4c9 commit 1efe51e
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
import org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.base.Charsets;
import org.apache.kafka.common.errors.SerializationException;
import org.apache.kafka.common.serialization.Deserializer;
import org.checkerframework.checker.initialization.qual.Initialized;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.UnknownKeyFor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -108,10 +105,8 @@ public void processElement(ProcessContext c) {
* BadRecord} instances in the input {@link PCollection}.
*/
public static class ErrorSinkTransform extends PTransform<PCollection<BadRecord>, PCollection<Long>> {

@UnknownKeyFor
@NonNull
@Initialized

@Override
public PCollection<Long> expand(PCollection<BadRecord> input) {
return input.apply("Combine", Combine.globally(Count.combineFn()));
}
Expand Down

0 comments on commit 1efe51e

Please sign in to comment.