[ 
https://issues.apache.org/jira/browse/FLINK-17181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Yao updated FLINK-17181:
-----------------------------
    Description: 
The {{SchedulingTopology}} interface has unnecessary generic types, which are 
currently always set to wildcards. Example:

{code}
                private final SchedulingTopology<?, ?> schedulingTopology;


                for (SchedulingExecutionVertex<?, ?> schedulingVertex : 
schedulingTopology.getVertices()) {
                        for (SchedulingResultPartition<?, ?> srp : 
schedulingVertex.getProducedResults()) {
                                ...
                        }
                }
{code}

The above code should become:

{code}
                private final SchedulingTopology schedulingTopology;


                for (SchedulingExecutionVertex schedulingVertex : 
schedulingTopology.getVertices()) {
                        for (SchedulingResultPartition srp : 
schedulingVertex.getProducedResults()) {
                                ...
                        }
                }
{code}

> Drop generic Types in SchedulingTopology Interface
> --------------------------------------------------
>
>                 Key: FLINK-17181
>                 URL: https://issues.apache.org/jira/browse/FLINK-17181
>             Project: Flink
>          Issue Type: Sub-task
>            Reporter: Gary Yao
>            Assignee: Gary Yao
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.11.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The {{SchedulingTopology}} interface has unnecessary generic types, which are 
> currently always set to wildcards. Example:
> {code}
>               private final SchedulingTopology<?, ?> schedulingTopology;
>               for (SchedulingExecutionVertex<?, ?> schedulingVertex : 
> schedulingTopology.getVertices()) {
>                       for (SchedulingResultPartition<?, ?> srp : 
> schedulingVertex.getProducedResults()) {
>                               ...
>                       }
>               }
> {code}
> The above code should become:
> {code}
>               private final SchedulingTopology schedulingTopology;
>               for (SchedulingExecutionVertex schedulingVertex : 
> schedulingTopology.getVertices()) {
>                       for (SchedulingResultPartition srp : 
> schedulingVertex.getProducedResults()) {
>                               ...
>                       }
>               }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to