Warning: comment by Dangling Javadoc

Since I updated my Android Studio (2.3.1) and build tools (2.3.1), I get a warning,

Warning: comment by Dangling Javadoc

for comments such as

/** get formatted name based on {@Link FORMAT_NAME} **/
setNameText(getFormattedName(FORMAT_NAME));

As you can see, I use javadoc style comment for links and others. I am wondering if there are other comment alternatives that have a snap function.

Thank.

+4
source share
3 answers

, Javadoc, setNameText. Javadoc comments , .

, : // get formatted name based on {@link FORMAT_NAME}.

+3

" -Editor-Inspections-Java-Javadoc issues-Dangling Javadoc comment".

+3

Just replace the "Dangling Javadoc Comment" with a block comment.

+1
source

Source: https://habr.com/ru/post/1674683/


All Articles