@CodeReview(reviewer="Kevin R. Dixon", date="2008-02-08", changesNeeded=true, comments={"Not sure about the Documented or Runtime Retention annotations for the class.","Otherwise, class looks fine."}, response=@CodeReviewResponse(respondent="Justin Basilico",date="2008-02-18",moreChangesNeeded=false,comments={"Runtime retention means that we could look via reflection to see what has been code reviewed.","Documented makes the review show up in the documentation."})) @Retention(value=RUNTIME) @Documented public @interface CodeReview
CodeReview annotation describes information about the last code
review for a piece of code.| Modifier and Type | Required Element and Description |
|---|---|
boolean |
changesNeeded
True if the review determined changes are needed in the code.
|
java.lang.String |
date
The date of the review.
|
java.lang.String[] |
reviewer
The full name of the reviewer of the code.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
comments
Comments from the code review.
|
CodeReviewResponse[] |
response
Response(s) to a code review.
|
public abstract java.lang.String[] reviewer
"Justin Basilico".public abstract java.lang.String date
"YYYY-mm-dd" format.
For example, "2008-01-14".public abstract boolean changesNeeded
public abstract java.lang.String[] comments
changesNeeded is specified,
there should be at least one comment.public abstract CodeReviewResponse[] response