comment, clean up

This commit is contained in:
Jason White 2017-05-22 20:10:03 -04:00
parent a5b4aeaa76
commit a9e5dd645d

View File

@ -74,10 +74,7 @@ public class StoredXssComments extends AssignmentEndpoint {
@ResponseBody @ResponseBody
public Collection<Comment> retrieveComments() { public Collection<Comment> retrieveComments() {
Collection<Comment> allComments = Lists.newArrayList(); Collection<Comment> allComments = Lists.newArrayList();
Collection<Comment> xmlComments = userComments.get(webSession.getUserName()); // no filtering applied here at render
if (xmlComments != null) {
allComments.addAll(xmlComments);
}
allComments.addAll(comments); allComments.addAll(comments);
return allComments; return allComments;
} }