提交 0b354c5a 编写于 作者: D darcy

6872011: Update printing processor to support JSR 308

Reviewed-by: jjg
上级 85c8ea6e
...@@ -48,7 +48,8 @@ import java.util.*; ...@@ -48,7 +48,8 @@ import java.util.*;
* deletion without notice.</b> * deletion without notice.</b>
*/ */
@SupportedAnnotationTypes("*") @SupportedAnnotationTypes("*")
@SupportedSourceVersion(SourceVersion.RELEASE_6) // TODO: Change to version 7 based visitors when available
@SupportedSourceVersion(SourceVersion.RELEASE_7)
public class PrintingProcessor extends AbstractProcessor { public class PrintingProcessor extends AbstractProcessor {
PrintWriter writer; PrintWriter writer;
...@@ -374,6 +375,7 @@ public class PrintingProcessor extends AbstractProcessor { ...@@ -374,6 +375,7 @@ public class PrintingProcessor extends AbstractProcessor {
for(TypeParameterElement tpe: typeParams) { for(TypeParameterElement tpe: typeParams) {
if (!first) if (!first)
writer.print(", "); writer.print(", ");
printAnnotationsInline(tpe);
writer.print(tpe.toString()); writer.print(tpe.toString());
first = false; first = false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册