Review Java code for bugs, performance issues, security vulnerabilities, and adherence to best practices
Review the Java code at $ARGUMENTS. If no argument is provided, review all staged changes (git diff --cached) or unstaged changes (git diff).
Analyze the code for issues in these categories:
Correctness & Bugs
Performance
Security
Design & Maintainability
Java-Specific Best Practices
For each finding, report:
path/to/File.java:42Summarize findings at the end grouped by severity. If the code is clean, say so — don't invent issues.