Details

    • Resolved In Build:
      b98
    • Verification:
      Verified

      Backports

        Description

        <code> ... </code> in javadocs should be changed to {@code ...}

          Activity

          Hide
          juh Jason Uh (Inactive) added a comment - - edited
          From a directory in the source tree, run

              $perl -p -i -e 's/<code>(.*?)<\/code>/{\@code \1}/g' `find . -name '*.java'`
              $perl -p -i -e 's/<tt>(.*?)<\/tt>/{\@code \1}/g' `find . -name '*.java'`

          to recursively convert instances of "<code>...</code>" and "<tt>...</tt>" to "{@code ...}"

          This will only convert cases in which the begin (<code>) and end (</code>) tags are in the same line. While this accounts for the vast majority of cases, there may be a few instances where the "<code> ... </code>" spans multiple lines, so just grep for "<code>" and "<tt>" after running the above lines of perl and manually fix the remaining cases.
          Show
          juh Jason Uh (Inactive) added a comment - - edited From a directory in the source tree, run     $perl -p -i -e 's/<code>(.*?)<\/code>/{\@code \1}/g' `find . -name '*.java'`     $perl -p -i -e 's/<tt>(.*?)<\/tt>/{\@code \1}/g' `find . -name '*.java'` to recursively convert instances of "<code>...</code>" and "<tt>...</tt>" to "{@code ...}" This will only convert cases in which the begin (<code>) and end (</code>) tags are in the same line. While this accounts for the vast majority of cases, there may be a few instances where the "<code> ... </code>" spans multiple lines, so just grep for "<code>" and "<tt>" after running the above lines of perl and manually fix the remaining cases.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3700bb58c9a2
          User: juh
          Date: 2013-06-25 21:42:40 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3700bb58c9a2 User: juh Date: 2013-06-25 21:42:40 +0000
          Hide
          tidu Tim Du (Inactive) added a comment -
          Updated <code> in javadocs to {@code ...}
          All of them are changed in comments and no <code> tag in the changed java filed.
          Verified.
          Show
          tidu Tim Du (Inactive) added a comment - Updated <code> in javadocs to {@code ...} All of them are changed in comments and no <code> tag in the changed java filed. Verified.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/3700bb58c9a2
          User: lana
          Date: 2013-07-05 18:35:47 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/3700bb58c9a2 User: lana Date: 2013-07-05 18:35:47 +0000

            People

            • Assignee:
              juh Jason Uh (Inactive)
              Reporter:
              juh Jason Uh (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: