find_possible_bugs
Detect null pointer risks, resource leaks, empty catch blocks, and other code quality issues in Java files. Run after loading a project.
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 |
|---|---|---|---|
| filePath | No | Optional: specific file to check (default: all files) | |
| severity | No | Filter by severity: high, medium, low, all (default: all) |