You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Vijay (Jira)" <ji...@apache.org> on 2021/09/12 12:31:00 UTC

[jira] [Commented] (KAFKA-7360) Code example in "Accessing Processor Context" misses a closing parenthesis

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

Vijay commented on KAFKA-7360:
------------------------------

Please review [https://github.com/apache/kafka/pull/10873]

> Code example in "Accessing Processor Context" misses a closing parenthesis
> --------------------------------------------------------------------------
>
>                 Key: KAFKA-7360
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7360
>             Project: Kafka
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 2.0.0
>            Reporter: Sven Erik Knop
>            Assignee: Vijay
>            Priority: Minor
>
> https://kafka.apache.org/20/documentation/streams/developer-guide/processor-api.html#accessing-processor-context
> Code example has some issues:
> public void process(String key, String value) {
>  
>  // add a header to the elements
>  context().headers().add.("key", "key"
>  }
> Should be
> public void process(String key, String value) {
>  
>  // add a header to the elements
>  context().headers().add("key", "value")
> }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)