What is the recommended place to put JavaDoc for a method with an annotation? Before or after the annotation?
@Test
/**
* My doc
*/
public void testMyTest(){
}
OR
/**
* My doc
*/
@Test
public void testMyTest(){
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think it matters but second format is better.
annotationsare part of the code and play crucial role per their usage pattern. Better to keep all code related entries together.