public void addComment(Comment c) {
   Assert.notNull(c, "Comment may not be null");
   Assert.hasText(c.getBlogPostId(), "Comment must have a blog post id");
   db.create(c);
 }
示例#2
0
 public RevisionResponseHandler(ObjectMapper om) {
   Assert.notNull(om, "ObjectMapper cannot be null");
   objectMapper = om;
 }