Github user HeartSaVioR commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2068#discussion_r111517701
  
    --- Diff: docs/State-checkpointing.md ---
    @@ -22,31 +22,30 @@ For example a word count bolt could use the key value 
state abstraction for the
     last committed by the framework during the previous run.
     3. In the execute method, update the word count.
     
    - ```java
    - public class WordCountBolt extends BaseStatefulBolt<KeyValueState<String, 
Long>> {
    - private KeyValueState<String, Long> wordCounts;
    - private OutputCollector collector;
    - ...
    -     @Override
    -     public void prepare(Map stormConf, TopologyContext context, 
OutputCollector collector) {
    -       this.collector = collector;
    -     }
    -     @Override
    -     public void initState(KeyValueState<String, Long> state) {
    -       wordCounts = state;
    -     }
    -     @Override
    -     public void execute(Tuple tuple) {
    -       String word = tuple.getString(0);
    -       Integer count = wordCounts.get(word, 0);
    -       count++;
    -       wordCounts.put(word, count);
    -       collector.emit(tuple, new Values(word, count));
    -       collector.ack(tuple);
    -     }
    - ...
    - }
    - ```
    +    public class WordCountBolt extends 
BaseStatefulBolt<KeyValueState<String, Long>> {
    --- End diff --
    
    Ah never mind. I got what you mean that `code fencing (with triple 
backticks) does not work in the middle of item lists`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to