find_possible_bugs
Detect potential bugs and code quality issues in Java projects, including null pointer risks, resource leaks, and synchronization problems, to improve code reliability.
Instructions
Find possible bugs and code quality issues.
USAGE: find_possible_bugs() USAGE: find_possible_bugs(filePath="path/to/File.java") OUTPUT: List of potential issues
Detects:
Null pointer risks (dereferencing potentially null values)
Resource leaks (unclosed streams, connections)
Empty catch blocks
Comparison issues (== on objects instead of equals)
Synchronization issues (sync on String)
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| severity | No | Filter by severity: high, medium, low, all (default: all) | |
| filePath | No | Optional: specific file to check (default: all files) |