Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-11003

Document of Java Lambda Expressions has a mistake

    Details

      Description

      Documentation of Java Lambda Expressions 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>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                karmagyz Yangze Guo
                Reporter:
                karmagyz Yangze Guo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: