BaleenJavadoc extends AbstractBaleenTaglet { protected static String removeJavadocAnnotations(String s) { return s.replaceAll("@baleen\\..*", "").replaceAll("\n{2,}", "\n").trim(); }  @Override String getName(); @Override Set<Location> getAllowedLocations(); @Override String toString(List<? extends DocTree> list, Element element); static final String NAME; }
@Test public void testRemoveAnnotations() { assertEquals( "Hello world\nThis is some text with @annotations\nFoo", BaleenJavadoc.removeJavadocAnnotations( "Hello world\nThis is some text with @annotations\n@baleen.parameter test line\nFoo\n@baleen.resource foobar")); }