You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2017/05/11 18:23:04 UTC
[jira] [Commented] (FLINK-6553) Calls to getSideOutput() result in
warnings regarding unchecked assignments
[ https://issues.apache.org/jira/browse/FLINK-6553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16006947#comment-16006947 ]
Stephan Ewen commented on FLINK-6553:
-------------------------------------
Is this simply a missing {{@SafeVarargs}} or more?
> Calls to getSideOutput() result in warnings regarding unchecked assignments
> ---------------------------------------------------------------------------
>
> Key: FLINK-6553
> URL: https://issues.apache.org/jira/browse/FLINK-6553
> Project: Flink
> Issue Type: Improvement
> Components: Streaming
> Reporter: Chesnay Schepler
>
> Consider the following code:
> {code}
> operator = ...
> operator.getSideOutput(tag<X>).map(MapFunction<X,X>...)
> {code}
> When writing this you will get an unchecked assignment warning. You also can't let the IDE auto-generate the signature of the MapFunction, it will be typed to objects.
> It is also odd that the following actually compiles, but that may be a java issue:
> {code}
> operator.<String>getSideOutput(new OutputTag<Integer>(){})
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)