tomstepp commented on code in PR #33596:
URL: https://github.com/apache/beam/pull/33596#discussion_r1931266177
##########
sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaUnboundedReader.java:
##########
@@ -332,10 +360,12 @@ public long getSplitBacklogBytes() {
private final String name;
private @Nullable Consumer<byte[], byte[]> consumer = null;
private final List<PartitionState<K, V>> partitionStates;
- private @Nullable KafkaRecord<K, V> curRecord = null;
+ private @MonotonicNonNull KafkaRecord<K, V> curRecord = null;
Review Comment:
It is not enforced by static analysis, but I think it is true that the value
is monotonic non-null. Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]