StefanRRichter commented on a change in pull request #7049: [FLINK-10816][cep]
Fix LockableTypeSerializer.duplicate() to consider…
URL: https://github.com/apache/flink/pull/7049#discussion_r231804087
##########
File path:
flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/sharedbuffer/Lockable.java
##########
@@ -109,8 +110,10 @@ public boolean isImmutableType() {
}
@Override
- public TypeSerializer<Lockable<E>> duplicate() {
- return new LockableTypeSerializer<>(elementSerializer);
+ public LockableTypeSerializer<E> duplicate() {
Review comment:
Because some code might want to get a `LockableTypeSerializer` when
duplicating a `LockableTypeSerializer` and that also only happens when you
already have a hold on a `LockableTypeSerializer` otherwise the interface will
still give you the general type. A more practical example, the test required
this to access the `getElementSerializer()` method.
----------------------------------------------------------------
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