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?

Was it helpful?

Solution

Does the @param serve any purpose

It is part of the JavaDocs documentation system.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top