hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject hadoop git commit: HADOOP-15574: Suppress build error if there are no docs after excluding private annotations. Contributed by Takanobu Asanuma.
Date Sun, 01 Jul 2018 11:47:26 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-3.1 012baf431 -> e1cd5732a


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

(cherry picked from commit d40121845e0e1ace6b349180ced53292353dbb7c)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e1cd5732
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e1cd5732
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e1cd5732

Branch: refs/heads/branch-3.1
Commit: e1cd5732a633b00f36acb261cfd67a86d1da1d75
Parents: 012baf4
Author: Nanda kumar <nanda@apache.org>
Authored: Sun Jul 1 17:11:46 2018 +0530
Committer: Nanda kumar <nanda@apache.org>
Committed: Sun Jul 1 17:16:48 2018 +0530

----------------------------------------------------------------------
 .../tools/ExcludePrivateAnnotationsStandardDoclet.java         | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/e1cd5732/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsStandardDoclet.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsStandardDoclet.java
b/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsStandardDoclet.java
index 2176ea5..5c535c8 100644
--- a/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsStandardDoclet.java
+++ b/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsStandardDoclet.java
@@ -38,7 +38,11 @@ public class ExcludePrivateAnnotationsStandardDoclet {
   public static boolean start(RootDoc root) {
     System.out.println(
         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) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message