@Test public void parse_mix_praiseTheMightyThor() { String input = " text}bef{}ore {@link ClassName}{@} text{after}\nand {@empty}{@value #member}\n\n"; List<CommentElement> elements = CommentParser.parse("TestClass", input).getElements(); assertEquals(5, elements.size()); assertEquals(new CommentText("text}bef{}ore "), elements.get(0)); assertEquals(new InlineLink(new Link("ClassName", "ClassName", null, null)), elements.get(1)); assertEquals(new CommentText("{@} text{after}\nand "), elements.get(2)); assertEquals(new InlineTag("empty", null), elements.get(3)); assertEquals(new InlineValue(new Value("TestClass", "member")), elements.get(4)); }
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())); }    }