How can you escape the @ character in javadoc?

前端 未结 5 1157
后悔当初
后悔当初 2020-12-02 08:54

How can I escape the @ symbol in javadoc? I am trying to use it inside a {@code} tag, which is inside

 tags.

I alre

5条回答
  •  悲哀的现实
    2020-12-02 09:40

    An alternative approach from https://stackoverflow.com/a/46332643/208581 ... is to use a similar but different character rather than escape the character: (This answer is copied from the source answer)


    One way to get around this is to use a different character that looks similar to the standard "@" symbol.

    1. @ (U+FF20): FULLWIDTH COMMERCIAL AT
    2. ⓐ (U+24D0): CIRCLED LATIN SMALL LETTER A

    Being similar but different to

    1. @ (U+0040): COMMERCIAL AT (the normal one that is broken)

提交回复
热议问题