Github user kl0u commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5500#discussion_r171253275
  
    --- Diff: 
flink-streaming-java/src/test/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithKeyedOperatorTest.java
 ---
    @@ -381,26 +392,28 @@ public void processElement(String value, 
KeyedReadOnlyContext ctx, Collector<Str
                        Iterator<Map.Entry<String, Integer>> iter = 
broadcastStateIt.iterator();
     
                        for (int i = 0; i < expectedBroadcastState.size(); i++) 
{
    -                           Assert.assertTrue(iter.hasNext());
    +                           assertTrue(iter.hasNext());
     
                                Map.Entry<String, Integer> entry = iter.next();
    -                           
Assert.assertTrue(expectedBroadcastState.containsKey(entry.getKey()));
    -                           
Assert.assertEquals(expectedBroadcastState.get(entry.getKey()), 
entry.getValue());
    +                           
assertTrue(expectedBroadcastState.containsKey(entry.getKey()));
    +                           
assertEquals(expectedBroadcastState.get(entry.getKey()), entry.getValue());
                        }
     
    -                   Assert.assertFalse(iter.hasNext());
    +                   assertFalse(iter.hasNext());
     
                        ctx.timerService().registerEventTimeTimer(timerTs);
                }
     
                @Override
    -           public void onTimer(long timestamp, OnTimerContext ctx, 
Collector<String> out) throws Exception {
    +           public void onTimer(long timestamp, OnTimerContext<String> ctx, 
Collector<String> out) throws Exception {
    --- End diff --
    
    Remove the `<String>`.


---

Reply via email to