Review and improve Java code using comprehensive object-oriented design guidelines and refactoring practices.
Prerequisites: Run ./mvnw compile or mvn compile before applying any change. If compilation fails, stop immediately and do not proceed — compilation failure is a blocking condition.
Core areas: Fundamental design principles (SOLID, DRY, YAGNI), class and interface design (composition over inheritance, immutability, accessibility minimization, accessor methods), core OOP concepts (encapsulation, inheritance, polymorphism), object creation patterns (static factory methods, Builder pattern, Singleton, dependency injection, avoiding unnecessary objects), OOD code smells (God Class, Feature Envy,...
SOLID, DRY 및 YAGNI 원칙 적용, 클래스 및 인터페이스 디자인 개선, OOP 개념 오용 수정(캡슐화, 상속, 다형성), 코드 냄새 식별 및 해결(God Class, Feature Envy, Data Clumps) 또는 객체 생성 패턴, 메소드 디자인 및 예외 처리 개선을 포함하여 객체 지향 디자인 품질을 위해 Java 코드를 검토, 개선 또는 리팩터링해야 할 때 사용합니다. Skills-for-Java 프로젝트의 일부 출처: jabrena/cursor-rules-java.