Question

/**
*@param context
*@param attrs
*/
Public DotView(Context context, Attribute attrs) {
     super(context, attrs);
     setFocusAbleInTouch(true);
}

Does the @param serve any purpose. I saw this code in an Android programming book, but the author didn't explain what the @param meant. I know it is inside a double line comment so I am assuming @param doesn't do anything to the outcome and it is there for readability. Am I right or wrong?

Était-ce utile?

La solution

Does the @param serve any purpose

It is part of the JavaDocs documentation system.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top