test/tools/javac/processing/6365040/ProcBar.java

changeset 699
d2aaaec153e8
parent 554
9d9f26857129
child 2525
2eb010b6cb22
equal deleted inserted replaced
698:f94af0667151 699:d2aaaec153e8
1 /* 1 /*
2 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
29 import static javax.tools.Diagnostic.Kind.*; 29 import static javax.tools.Diagnostic.Kind.*;
30 30
31 /** 31 /**
32 * Second of several processors to run. 32 * Second of several processors to run.
33 */ 33 */
34 @SupportedAnnotationTypes("*") 34 public class ProcBar extends JavacTestingAbstractProcessor {
35 public class ProcBar extends AbstractProcessor {
36 public boolean process(Set<? extends TypeElement> annotations, 35 public boolean process(Set<? extends TypeElement> annotations,
37 RoundEnvironment roundEnvironment) { 36 RoundEnvironment roundEnvironment) {
38 if (!roundEnvironment.processingOver()) 37 if (!roundEnvironment.processingOver())
39 processingEnv.getMessager().printMessage(NOTE, 38 messager.printMessage(NOTE, "Hello from ProcBar");
40 "Hello from ProcBar");
41 return false; 39 return false;
42 } 40 }
43 } 41 }

mercurial