--- a/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/Start.java Thu May 26 12:38:21 2016 -0700
+++ b/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/Start.java Thu May 26 17:35:26 2016 -0700
@@ -221,6 +221,7 @@
* this is to minimize argument processing and most importantly the impact
* of class loader creation, needed to detect the doclet/taglet class variants.
*/
+ @SuppressWarnings("deprecation")
int begin(String... argv) {
// Preprocess @file arguments
try {
@@ -254,6 +255,7 @@
return begin(opts, fileObjects);
}
+ @SuppressWarnings("deprecation")
private boolean begin(List<String> options, Iterable<? extends JavaFileObject> fileObjects) {
fileManager = context.get(JavaFileManager.class);
if (fileManager == null) {
@@ -270,7 +272,6 @@
initMessager();
messager.setLocale(locale);
try {
- @SuppressWarnings("deprecation")
Object o = docletClass.newInstance();
doclet = (Doclet) o;
} catch (InstantiationException | IllegalAccessException exc) {