[ 
https://issues.apache.org/jira/browse/FLINK-11003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16701623#comment-16701623
 ] 

ASF GitHub Bot commented on FLINK-11003:
----------------------------------------

zentol closed pull request #7174: [FLINK-11003][docs] Fix mistake in 
java_lambda doc
URL: https://github.com/apache/flink/pull/7174
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/dev/java_lambdas.md b/docs/dev/java_lambdas.md
index 4b306ac455d..0b4a5cc069d 100644
--- a/docs/dev/java_lambdas.md
+++ b/docs/dev/java_lambdas.md
@@ -107,7 +107,7 @@ env.fromElements(1, 2, 3)
     .map(new MyTuple2Mapper())
     .print();
 
-public static class MyTuple2Mapper extends MapFunction<Integer, Integer> {
+public static class MyTuple2Mapper extends MapFunction<Integer, 
Tuple2<Integer, Integer>> {
     @Override
     public Tuple2<Integer, Integer> map(Integer i) {
         return Tuple2.of(i, i);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> 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.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