test/tools/javac/processing/model/util/deprecation/TestDeprecation.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2011 Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -40,10 +40,11 @@
import javax.annotation.processing.*;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.*;
import javax.lang.model.util.*;
import static javax.tools.Diagnostic.Kind.*;
+import static JavacTestingAbstractProcessor.*;
import java.io.Writer;
/**
* This processor verifies that the information returned by
* getElementsAnnotatedWith is consistent with the expected results
@@ -66,11 +67,11 @@
processingEnv.getMessager().printMessage(ERROR, "Deprecation mismatch found!");
}
return true;
}
- private class DeprecationChecker extends ElementScanner7<Boolean,Void> {
+ private class DeprecationChecker extends ElementScanner<Boolean,Void> {
private Elements elementUtils;
private boolean failure;
DeprecationChecker() {
super(false);
elementUtils = processingEnv.getElementUtils();