@Test public void parse_preformatted_code() { List<CommentElement> elements = CommentParser.parse("TestClass", "<pre>{@code\n foo\n}</pre>").getElements(); assertEquals(3, elements.size()); assertEquals(new CommentText("<pre>"), elements.get(0)); assertEquals(new InlineTag("code", "\n foo\n"), elements.get(1)); assertEquals(new CommentText("</pre>"), elements.get(2)); }
static Comment parse(String owningClass, String commentText) { return isBlank(commentText) ? Comment.createEmpty() : new Comment(parseElements(owningClass, commentText.trim())); }
CommentParser { static Comment parse(String owningClass, String commentText) { return isBlank(commentText) ? Comment.createEmpty() : new Comment(parseElements(owningClass, commentText.trim())); } }
CommentParser { static Comment parse(String owningClass, String commentText) { return isBlank(commentText) ? Comment.createEmpty() : new Comment(parseElements(owningClass, commentText.trim())); }  }
CommentParser { static Comment parse(String owningClass, String commentText) { return isBlank(commentText) ? Comment.createEmpty() : new Comment(parseElements(owningClass, commentText.trim())); }   }
CommentParser { static Comment parse(String owningClass, String commentText) { return isBlank(commentText) ? Comment.createEmpty() : new Comment(parseElements(owningClass, commentText.trim())); }    }