Github user kl0u commented on a diff in the pull request: https://github.com/apache/flink/pull/5481#discussion_r171236298 --- Diff: flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/KeyedStream.scala --- @@ -54,21 +54,20 @@ class KeyedStream[T, K](javaStream: KeyedJavaStream[T, K]) extends DataStream[T] // ------------------------------------------------------------------------ /** - * Applies the given [[ProcessFunction]] on the input stream, thereby - * creating a transformed output stream. - * - * The function will be called for every element in the stream and can produce - * zero or more output. The function can also query the time and set timers. When - * reacting to the firing of set timers the function can emit yet more elements. - * - * The function will be called for every element in the input streams and can produce zero - * or more output elements. Contrary to the [[DataStream#flatMap(FlatMapFunction)]] - * function, this function can also query the time and set timers. When reacting to the firing - * of set timers the function can directly emit elements and/or register yet more timers. - * - * @param processFunction The [[ProcessFunction]] that is called for each element - * in the stream. - */ + * Applies the given [[ProcessFunction]] on the input stream, thereby + * creating a transformed output stream. + * + * The function will be called for every element in the stream and can produce + * zero or more output. The function can also query the time and set timers. When + * reacting to the firing of set timers the function can emit yet more elements. + * + * The function will be called for every element in the input streams and can produce zero + * or more output elements. Contrary to the [[DataStream#flatMap(FlatMapFunction)]] + * function, this function can also query the time and set timers. When reacting to the firing + * of set timers the function can directly emit elements and/or register yet more timers. + * + * @param processFunction The [[ProcessFunction]] that is called for each element in the stream. + */ --- End diff -- Revert all reformatings (indent by 1 space) and also add the `@deprecated` annotation with the correct, non-deprecated alternative, as done in the corresponding `java` class.
---