@Test public void testToTag() throws Exception { assertToTag("@foo bar", "foo", "bar"); assertToTag("@ foo bar", "foo", "bar"); assertToTag("@ foo bar", "foo", "bar"); assertToTag("@ foo bar ", "foo", "bar"); assertToTag("@ foo bar ", "foo", "bar"); }
static Javadoc.Tag toTag(String text) { text = text.substring(1).trim(); final Map.Entry<String, String> pair = parseKeyValue(text); return new Javadoc.Tag(pair.getKey(), pair.getValue()); }
JavadocParser { static Javadoc.Tag toTag(String text) { text = text.substring(1).trim(); final Map.Entry<String, String> pair = parseKeyValue(text); return new Javadoc.Tag(pair.getKey(), pair.getValue()); } }
JavadocParser { static Javadoc.Tag toTag(String text) { text = text.substring(1).trim(); final Map.Entry<String, String> pair = parseKeyValue(text); return new Javadoc.Tag(pair.getKey(), pair.getValue()); } JavadocParser(final String content); }
JavadocParser { static Javadoc.Tag toTag(String text) { text = text.substring(1).trim(); final Map.Entry<String, String> pair = parseKeyValue(text); return new Javadoc.Tag(pair.getKey(), pair.getValue()); } JavadocParser(final String content); Javadoc build(); static Javadoc parse(final String content); }
JavadocParser { static Javadoc.Tag toTag(String text) { text = text.substring(1).trim(); final Map.Entry<String, String> pair = parseKeyValue(text); return new Javadoc.Tag(pair.getKey(), pair.getValue()); } JavadocParser(final String content); Javadoc build(); static Javadoc parse(final String content);  }