You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yangze Guo (JIRA)" <ji...@apache.org> on 2018/11/26 12:24:00 UTC

[jira] [Created] (FLINK-11003) Document of Java Lambda Expressions has a mistake

Yangze Guo created FLINK-11003:
----------------------------------

             Summary: Document of Java Lambda Expressions has a mistake
                 Key: FLINK-11003
                 URL: https://issues.apache.org/jira/browse/FLINK-11003
             Project: Flink
          Issue Type: Bug
          Components: Documentation
            Reporter: Yangze Guo


Documentation of [*Java Lambda Expressions*|https://ci.apache.org/projects/flink/flink-docs-master/dev/java_lambdas.html] which may cause confusion.

In the last code block, it presents some way to solve type missing problem.

In 15 line:

public static class MyTuple2Mapper extends MapFunction<Integer, Integer> {
    @Override
    public Tuple2<Integer, Integer> map(Integer i) {
        return Tuple2.of(i, i);
    }
}

The second generic type in MapFunction should be Tuple2<Integer, Integer>



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)