langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/DocCommentParser.java
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/DocCommentParser.java Fri Dec 16 18:54:09 2016 +0300
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/DocCommentParser.java Fri Dec 16 09:07:57 2016 -0800
@@ -1160,6 +1160,16 @@
}
},
+ // @provides service-name description
+ new TagParser(Kind.BLOCK, DCTree.Kind.PROVIDES) {
+ public DCTree parse(int pos) throws ParseException {
+ skipWhitespace();
+ DCReference ref = reference(true);
+ List<DCTree> description = blockContent();
+ return m.at(pos).newProvidesTree(ref, description);
+ }
+ },
+
// @return description
new TagParser(Kind.BLOCK, DCTree.Kind.RETURN) {
public DCTree parse(int pos) {
@@ -1261,6 +1271,16 @@
}
},
+ // @uses service-name description
+ new TagParser(Kind.BLOCK, DCTree.Kind.USES) {
+ public DCTree parse(int pos) throws ParseException {
+ skipWhitespace();
+ DCReference ref = reference(true);
+ List<DCTree> description = blockContent();
+ return m.at(pos).newUsesTree(ref, description);
+ }
+ },
+
// {@value package.class#field}
new TagParser(Kind.INLINE, DCTree.Kind.VALUE) {
public DCTree parse(int pos) throws ParseException {