Title: Fix issue 132 and refactor entry point detection logic. by rahlk · Pull Request #133 · codellm-devkit/codeanalyzer-java · GitHub
Open Graph Title: Fix issue 132 and refactor entry point detection logic. by rahlk · Pull Request #133 · codellm-devkit/codeanalyzer-java
X Title: Fix issue 132 and refactor entry point detection logic. by rahlk · Pull Request #133 · codellm-devkit/codeanalyzer-java
Description: Motivation and Context This change addresses Issue #132, which reported that codeanalyzer fails to detect certain JakartaEE methods (e.g., doPost(...)) as valid entrypoints even though the surrounding class is correctly recognized as an entrypoint class. The root cause was a flawed heuristic in the isEntrypointMethod(...) implementation that required both: the presence of request/response parameters, and an annotation containing the string "Override". Since methods like doPost(...) override HttpServlet methods but may not explicitly include the @Override annotation (which is optional in Java), the AND condition resulted in false negatives. This PR removes the faulty annotation check and ensures servlet entrypoints are correctly discovered. Additionally, this change refactors discovery logic to leverage a new EntrypointFinderFactory, improving modularity and extensibility for multi-framework support. How Has This Been Tested? Ran the updated codeanalyzer against a JakartaEE sample application with HttpServlet subclasses. Verified that doPost(...), doGet(...), and similar methods are now correctly marked as entrypoints. Confirmed no regressions in Spring or JAX-RS entrypoint detection. Breaking Changes No breaking changes. This is a non-breaking behavioral fix that improves the correctness of entrypoint detection in JakartaEE applications. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the Codellm-Devkit Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context The use of EntrypointFinderFactory now cleanly supports framework-specific entrypoint logic (e.g., Spring, JAX-RS, Jakarta). This abstraction will make future enhancements (e.g., Struts, Camel) easier to plug in. Minor cleanups also improve maintainability by localizing entrypoint logic to its respective finder class.
Open Graph Description: Motivation and Context This change addresses Issue #132, which reported that codeanalyzer fails to detect certain JakartaEE methods (e.g., doPost(...)) as valid entrypoints even though the surround...
X Description: Motivation and Context This change addresses Issue #132, which reported that codeanalyzer fails to detect certain JakartaEE methods (e.g., doPost(...)) as valid entrypoints even though the surround...
Opengraph URL: https://github.com/codellm-devkit/codeanalyzer-java/pull/133
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:7e1d37ef-bfff-f07b-f809-9030182b5a83 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E1AA:124205:152D6F:1B4C5C:698E80AB |
| html-safe-nonce | 8b25bd79463f4a78774930dd85bcb5aabdb7044b04849de27a85522b70a4a65e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUFBOjEyNDIwNToxNTJENkY6MUI0QzVDOjY5OEU4MEFCIiwidmlzaXRvcl9pZCI6IjMzMDY5MjA0NDM2NzIxNjY1NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fd91a6840fbbf6422509e3c54ba2185cdb3518c4a144199b2cefa758c2f8ae8a |
| hovercard-subject-tag | pull_request:2464176147 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/codellm-devkit/codeanalyzer-java/pull/133/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1433964?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1433964?s=400&v=4 |
| og:image:alt | Motivation and Context This change addresses Issue #132, which reported that codeanalyzer fails to detect certain JakartaEE methods (e.g., doPost(...)) as valid entrypoints even though the surround... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/codellm-devkit/codeanalyzer-java git https://github.com/codellm-devkit/codeanalyzer-java.git |
| octolytics-dimension-user_id | 197800760 |
| octolytics-dimension-user_login | codellm-devkit |
| octolytics-dimension-repository_id | 731300153 |
| octolytics-dimension-repository_nwo | codellm-devkit/codeanalyzer-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 731300153 |
| octolytics-dimension-repository_network_root_nwo | codellm-devkit/codeanalyzer-java |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f7a12861f7011eecb14bcc4388a767d829a52dfc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width