Skip to content

MINOR: Various javadoc fixes#10272

Merged
ijuma merged 2 commits into
apache:trunkfrom
ijuma:javadoc-fixes
Mar 9, 2021
Merged

MINOR: Various javadoc fixes#10272
ijuma merged 2 commits into
apache:trunkfrom
ijuma:javadoc-fixes

Conversation

@ijuma

@ijuma ijuma commented Mar 5, 2021

Copy link
Copy Markdown
Member
  • Use consistent options for javadoc and aggregatedJavadoc
  • aggregatedJavadoc depends on compileJava
  • connect-api inherits options.links
  • streams and streams-test-utils javadoc exclusions should be more
    specific to avoid unexpected behavior in aggregatedJavadoc when the
    javadoc for multiple modules is generated together

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

- Use consistent options for `javadoc` and `aggregatedJavadoc`
- `aggregatedJavadoc` depends on `compileJava`
- `connect-api` inherits `options.links`
- `streams` and `streams-test-utils` javadoc exclusions should be more
specific to avoid unexpected behavior in `aggregatedJavadoc` where the
javadoc for multiple modules is generated together
@ijuma
ijuma requested a review from chia7712 March 5, 2021 22:19

@chia7712 chia7712 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ijuma I'd like to test this patch for docs. However, it seems aggregatedJavadoc was broken (see following output). Do you want to fix it in this patch?

/home/chia7712/kafka/streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java:44: error: cannot find symbol
import org.apache.kafka.streams.internals.KeyValueStoreFacade;
                                         ^
  symbol:   class KeyValueStoreFacade
  location: package org.apache.kafka.streams.internals
/home/chia7712/kafka/streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java:45: error: cannot find symbol
import org.apache.kafka.streams.internals.WindowStoreFacade;
                                         ^
  symbol:   class WindowStoreFacade
  location: package org.apache.kafka.streams.internals
/home/chia7712/kafka/streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java:69: error: cannot find symbol
import org.apache.kafka.streams.processor.internals.TestDriverProducer;
                                                   ^
  symbol:   class TestDriverProducer
  location: package org.apache.kafka.streams.processor.internals
/home/chia7712/kafka/streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java:226: error: cannot find symbol
    private final TestDriverProducer testDriverProducer;
                  ^
  symbol:   class TestDriverProducer
  location: class TopologyTestDriver
4 errors

Comment thread build.gradle
}

tasks.withType(Javadoc) {
// disable the crazy super-strict doclint tool in Java 8

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about keeping those comments?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seemed a bit redundant since we only support Java 8+. I can add back something.

@ijuma

ijuma commented Mar 6, 2021

Copy link
Copy Markdown
Member Author

You have to test with Java 8. I filed https://issues.apache.org/jira/browse/KAFKA-12435 for the Java 11 issue yesterday. It's not clear that there's an easy fix.

@chia7712 chia7712 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

aggregatedJavadoc is broken on 2.8, 2.7 and 2.6. Maybe we should backport this patch.

@ijuma
ijuma merged commit 0e8a84e into apache:trunk Mar 9, 2021
@ijuma
ijuma deleted the javadoc-fixes branch March 9, 2021 14:00
@ijuma

ijuma commented Mar 9, 2021

Copy link
Copy Markdown
Member Author

Merged to trunk and cherry-picked to 2.8 for now.

ijuma added a commit that referenced this pull request Mar 9, 2021
- Use consistent options for `javadoc` and `aggregatedJavadoc`
- `aggregatedJavadoc` depends on `compileJava`
- `connect-api` inherits `options.links`
- `streams` and `streams-test-utils` javadoc exclusions should be more
specific to avoid unexpected behavior in `aggregatedJavadoc` when the
javadoc for multiple modules is generated together

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants