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

Chesnay Schepler closed FLINK-11003.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.7.0

master: e56c58f4345ab740c6c3f3dccb471d289438ad08
1.7: a7ec9cbf2fa20fece4f2ba926ba685dc43661e6a

> 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
>    Affects Versions: 1.5.5, 1.6.2, 1.7.0
>            Reporter: Yangze Guo
>            Assignee: Yangze Guo
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.7.0, 1.8.0
>
>
> Documentation of *[Java Lambda 
> Expressions|https://ci.apache.org/projects/flink/flink-docs-master/dev/java_lambdas.html]*
>  has a mistake 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)

Reply via email to