Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6680

Fix {@literal @} that shows up in Javadoc code examples

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Duplicate
    • None
    • Not applicable
    • sdk-java-core

    Description

      Many Beam classes include multi-line code examples. When annotations need to mark classes or methods in those examples, it looks like we have generally have tried to escape the `@` with a "@literal" tag, but those tags aren't working as expected and end up appearing in the rendered documentation. See ParDo for several examples.

      Where `@` appears within a line, no escaping appears to be necessary. It gets a bit complicated when `@` appears as the first non-whitespace character in a line, as is usually the case for annotations on classes or methods. I've proposed a style for handling that case in https://github.com/apache/beam/pull/7852

      Attachments

        Activity

          People

            jeff.klukas@gmail.com Jeff Klukas
            jeff.klukas@gmail.com Jeff Klukas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: