StefanRRichter commented on a change in pull request #6707: [FLINK-10157] 
[State TTL] Allow `null` user values in map state with TTL
URL: https://github.com/apache/flink/pull/6707#discussion_r219100170
 
 

 ##########
 File path: 
flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/NullableSerializer.java
 ##########
 @@ -56,33 +59,51 @@
 public class NullableSerializer<T> extends TypeSerializer<T> {
        private static final long serialVersionUID = 3335569358214720033L;
 
+       @Nonnull
        private final TypeSerializer<T> originalSerializer;
 
-       private NullableSerializer(TypeSerializer<T> originalSerializer) {
+       private NullableSerializer(@Nonnull TypeSerializer<T> 
originalSerializer) {
                Preconditions.checkNotNull(originalSerializer, "The original 
serializer cannot be null");
 
 Review comment:
   You could also remove the `Preconditions` check now that the annotation is 
in place.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to