コード例 #1
0
 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;
 }