What problem does it solve?
Developers often struggle to consistently apply the best practices from Effective Java across projects, leading to verbose, brittle, or unsafe code. This Skill provides a structured approach to generate and critique Java code in alignment with Bloch's patterns and guidelines, reducing defects and design drift.
Core Features & Use Cases
- Generate Java code that adheres to key patterns (static factories, Builder, immutability, and safe interfaces) for new modules.
- Review existing code to identify and fix common pitfalls (telescoping constructors, raw types, missing equals/hashCode, and unsafe mutability).
- Use cases include designing APIs, reviewing concurrent components, and ensuring robust exception handling and serialization practices.
Quick Start
Generate a defensive, immutable value object using Builder and verify it with a code review for naming, documentation, and null checks.