HADOOP-15574: Suppress build error if there are no docs after excluding private annotations. Contributed by Takanobu Asanuma.

This commit is contained in:
Nanda kumar 2018-07-01 17:11:46 +05:30
parent cdb084426b
commit d40121845e

View File

@ -38,7 +38,11 @@ public static LanguageVersion languageVersion() {
public static boolean start(RootDoc root) { public static boolean start(RootDoc root) {
System.out.println( System.out.println(
ExcludePrivateAnnotationsStandardDoclet.class.getSimpleName()); ExcludePrivateAnnotationsStandardDoclet.class.getSimpleName());
return Standard.start(RootDocProcessor.process(root)); RootDoc excludedDoc = RootDocProcessor.process(root);
if (excludedDoc.specifiedPackages().length == 0) {
return true;
}
return Standard.start(excludedDoc);
} }
public static int optionLength(String option) { public static int optionLength(String option) {