find_possible_bugs
Identify null pointer risks, resource leaks, empty catch blocks, object comparison errors, and synchronization issues in Java code. Optionally filter by severity or target a specific file.
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) |