AbstractCommentRule extends AbstractJavaRule { @Deprecated protected List<Integer> tagsIndicesIn(String comments) { Map<String, Integer> tags = CommentUtil.javadocTagsIn(comments); return new ArrayList<>(tags.values()); }    }
@Test public void testTagsIndicesIn() { String comment = " \n" + " boolean supports(N node);\n" + ""; List<Integer> indices = testSubject.tagsIndicesIn(comment); Assert.assertEquals(2, indices.size()); Assert.assertEquals(79, indices.get(0).intValue()); Assert.assertEquals(123, indices.get(1).intValue()); }