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

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

KarmaGYZ opened a new pull request #7174: [FLINK-11003][docs] Fix mistake in 
java_lambda doc
URL: https://github.com/apache/flink/pull/7174
 
 
   ## What is the purpose of the change
   
   This pull request fix a mistake code in the Java Lambda Expressions doc
   
   
   ## Brief change log
   
   - Change the generic type in MapFunction of MyTuple2Mapper class
   
   ## Verifying this change
   
   This change is a docs cleanup.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no

----------------------------------------------------------------
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
>            Reporter: Yangze Guo
>            Priority: Minor
>              Labels: pull-request-available
>
> 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