forked from Hithomelabs/CFTunnels
[ISSUE-115] Fix JavaDoc standards and add javadoc verification #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/documentation-standards"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR addresses the code review feedback from PR #115 by making the following fixes:
Non-standard Javadoc tags: Replaced custom
@securityand@responsetags with standard Javadoc tags:@security Requires USER role→ use@throws SecurityException if user lacks required role@response 200 OK→ use proper@returntags and document response in the descriptionMixed indentation in
CfTunnelsApplication.java: Fixed themainmethod to use consistent spaces (4 spaces) instead of tabs, matching the rest of the codebase.Added
@throwstags: Added proper@throwsdocumentation for methods that can throw exceptions:@throws JsonProcessingExceptionfor methods doing JSON processing@throws SecurityExceptionfor methods requiring specific rolesJavadoc generation verification:
Changes
CfTunnelsApplication.java: Fixed indentation, added comprehensive class-level and method-level JavaDocTunnelController.java: Fixed non-standard Javadoc tags, added @throws documentation, added class-level JavaDoc with examplesbuild.gradle: Added javadoc task configuration.gitea/workflows/test_build.yml: Added javadoc generation and verification stepsIssues
Testing
./gradlew javadocruns successfully and generates documentation inbuild/docs/javadoc/./gradlew verifyJavadocconfirms successful generationCheckout
From your project repository, check out a new branch and test the changes.