-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix javadocs to allow doc lint to pass in JDK 16 and above. #4834
Conversation
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
…used it to change Signed-off-by: Usman Saleem <usman@usmans.info>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Massive PR, I did not read every single javadoc, but the ones I spot checked are all reasonable. We don't expect these to be in-depth descriptions, but we can improve that over time.
Uzi you absolute legend, thanks for doing this thankless task.
seconded. 👍 |
Kudos on this mega PR @usmansaleem! I've been playing trying to break the build by adding an un-javadoc'd method...
If you meant It seems to be configured to run in circle CI (as part of the integration tests for some reason): https://github.com/hyperledger/besu/blob/main/.circleci/config.yml#L200-L203 So there's currently nothing to stop people committing non-compliant code onto main AFAICT. Is there a way to force javadoc to throw errors even on java 11 so it will fail the build before we move to java 17? |
Signed-off-by: Usman Saleem <usman@usmans.info> # Conflicts: # besu/src/main/java/org/hyperledger/besu/cli/config/NetworkName.java # besu/src/main/java/org/hyperledger/besu/cli/options/unstable/SynchronizerOptions.java # besu/src/main/java/org/hyperledger/besu/controller/BesuController.java # besu/src/main/java/org/hyperledger/besu/controller/MergeBesuControllerBuilder.java # config/src/main/java/org/hyperledger/besu/config/GenesisConfigFile.java # config/src/main/java/org/hyperledger/besu/config/GenesisConfigOptions.java # config/src/main/java/org/hyperledger/besu/config/StubGenesisConfigOptions.java # ethereum/eth/src/main/java/org/hyperledger/besu/consensus/merge/ForkchoiceEvent.java # evm/src/main/java/org/hyperledger/besu/evm/EVM.java # evm/src/main/java/org/hyperledger/besu/evm/EvmSpecVersion.java # evm/src/main/java/org/hyperledger/besu/evm/MainnetEVMs.java # evm/src/main/java/org/hyperledger/besu/evm/code/CodeFactory.java # evm/src/main/java/org/hyperledger/besu/evm/code/CodeV0.java # evm/src/main/java/org/hyperledger/besu/evm/code/CodeV1.java # evm/src/main/java/org/hyperledger/besu/evm/code/EOFLayout.java # evm/src/main/java/org/hyperledger/besu/evm/contractvalidation/CachedInvalidCodeRule.java # evm/src/main/java/org/hyperledger/besu/evm/contractvalidation/ContractValidationRule.java # evm/src/main/java/org/hyperledger/besu/evm/frame/ExceptionalHaltReason.java # evm/src/main/java/org/hyperledger/besu/evm/gascalculator/ShanghaiGasCalculator.java # evm/src/main/java/org/hyperledger/besu/evm/operation/Operation.java
Signed-off-by: Usman Saleem <usman@usmans.info>
It seems to me a javadoc/doclint has a bug in Java 11 which seems to be fixed post java 15. I was trying to see if there are any defaults which were disabled in 11 but enabled in Java 15+, but it doesn't seem so. What seems to be the plan to move to CircleCI build to Java 17, the current LTS? |
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
This reverts commit 70f5e86. Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Last I heard we were planning to stay on CircleCI, rather than moving to github actions (which would have supported java 17). |
Signed-off-by: Usman Saleem <usman@usmans.info> # Conflicts: # evm/src/main/java/org/hyperledger/besu/evm/code/CodeV0.java # evm/src/main/java/org/hyperledger/besu/evm/operation/RetFOperation.java
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info> # Conflicts: # consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/blockcreation/PayloadAttributes.java # evm/src/main/java/org/hyperledger/besu/evm/code/CodeSection.java # evm/src/main/java/org/hyperledger/besu/evm/code/EOFLayout.java # evm/src/main/java/org/hyperledger/besu/evm/operation/AbstractCreateOperation.java # evm/src/main/java/org/hyperledger/besu/evm/operation/Create2Operation.java # evm/src/main/java/org/hyperledger/besu/evm/operation/CreateOperation.java # plugin-api/build.gradle
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info> # Conflicts: # consensus/common/src/main/java/org/hyperledger/besu/consensus/common/bft/blockcreation/BftBlockCreatorFactory.java # consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/MergeContext.java # consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/PostMergeContext.java # plugin-api/build.gradle # plugin-api/src/main/java/org/hyperledger/besu/plugin/data/TransactionType.java
Signed-off-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Usman Saleem <usman@usmans.info>
- Added missing javadocs so that javadoc doclint passes against JDK 17 (invoke by Besu gradle build). - Exclude following packages from javadoc lint: org.hyperledger.besu.privacy.contracts.generated org.hyperledger.besu.tests.acceptance.* - Temporarily exclude ethereum and evm submodule for doc lint checks. - Run the javadoc task using GitHub actions (use Java 17) to report any javadoc errors during the PR builds - Updating plugin-api build.gradle with new hash as javadoc comments caused it to change Signed-off-by: Usman Saleem <usman@usmans.info>
- Added missing javadocs so that javadoc doclint passes against JDK 17 (invoke by Besu gradle build). - Exclude following packages from javadoc lint: org.hyperledger.besu.privacy.contracts.generated org.hyperledger.besu.tests.acceptance.* - Temporarily exclude ethereum and evm submodule for doc lint checks. - Run the javadoc task using GitHub actions (use Java 17) to report any javadoc errors during the PR builds - Updating plugin-api build.gradle with new hash as javadoc comments caused it to change Signed-off-by: Usman Saleem <usman@usmans.info>
PR description
Adding missing javadocs so that javadoc doclint passes against JDK 16+ (invoke by Besu gradle build).
Exclude following packages from javadoc lint:
Temporarily exclude ethereum and evm submodule for doc lint checks.
Important diffs:
Fixed Issue(s)
#2681
Documentation
doc-change-required
label to this PR ifupdates are required.
Changelog