Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2832

Turn off doclint in JDK 8 Javadoc

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Compiling Oozie with JDK8 results in a lot of doclint warnings:

      85 warnings
      [WARNING] Javadoc Warnings
      [WARNING] /Users/asasvari/workspace/apache/oozie/client/src/main/java/org/apache/oozie/cli/CLIParser.java:67: warning: no description for @param
      [WARNING] * @param hasArguments
      [WARNING] ^
      [WARNING] /Users/asasvari/workspace/apache/oozie/client/src/main/java/org/apache/oozie/cli/OozieCLI.java:549: warning: no @param for jobType
      [WARNING] protected Options createScriptLanguageOptions(String jobType) {
      

      and warnings about HTML entries like

      [WARNING] /Users/asasvari/workspace/apache/oozie/client/src/main/java/org/apache/oozie/client/OozieClient.java:76: warning: empty <p> tag
      [WARNING] * <p>
      [WARNING] ^
      

      Java 8 Javadoc is stricter than previous versions, and in certain cases it is more annoying than useful. With -Xdoclint:none it can disabled.
      As -Xdoclint only exists for java8, we shall not pass it to earlier java versions.

      To do this, a new profile can be added that is activated for JDK8+:

              <profile>
                  <id>disable-doclint</id>
                  <activation>
                      <jdk>[1.8,)</jdk>
                  </activation>
                  <build>
                      <plugins>
                          <plugin>
                              <groupId>org.apache.maven.plugins</groupId>
                              <artifactId>maven-javadoc-plugin</artifactId>
                              <configuration>
                                  <additionalparam>-Xdoclint:none</additionalparam>
                              </configuration>
                          </plugin>
                      </plugins>
                  </build>
              </profile>
      

      Attachments

        1. OOZIE-2832-01.patch
          0.9 kB
          Attila Sasvári

        Issue Links

          Activity

            People

              asasvari Attila Sasvári
              asasvari Attila Sasvári
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: