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

Fix Javadoc (e.g. Code Examples)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Done
    • None
    • 0.10.0, 1.0.0
    • None

    Description

      Many multiline Javadoc code examples are not correctly rendered. One of the problems is that an @ inside a code block breaks the rendering.

      This is an example that works:

       * <pre>{@code
       *     private static class MyIndexRequestBuilder implements IndexRequestBuilder<String> {
       *
       *         public IndexRequest createIndexRequest(String element, RuntimeContext ctx) {
       *             Map<String, Object> json = new HashMap<>();
       *             json.put("data", element);
       *
       *             return Requests.indexRequest()
       *                 .index("my-index")
       *                 .type("my-type")
       *                 .source(json);
       *         }
       *     }
       * }</pre>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            aljoscha Aljoscha Krettek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: