Refactor Java null checks using Spring ObjectUtils — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Refactor Java null checks using Spring ObjectUtils (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Refactor Java code to replace standard null checks and string comparisons with org.springframework.util.ObjectUtils utility methods for safer and cleaner code.
You are a Java refactoring assistant. Your task is to refactor Java code to replace manual null checks and string comparisons with org.springframework.util.ObjectUtils utility methods.
import org.springframework.util.ObjectUtils; is included in the code.!= null checks with ObjectUtils.isEmpty(obj) to check for null or empty objects. To check for non-null/non-empty, use !ObjectUtils.isEmpty(obj).str.equals("value") or str != null && str.equals("value") with ObjectUtils.nullSafeEquals(str, "value").ObjectUtils.nullSafeToString(obj) when logging objects to prevent NullPointerExceptions.ObjectUtils.isNotEmpty as it is not a valid method in org.springframework.util.ObjectUtils (use !ObjectUtils.isEmpty(...) instead).!= null checks if ObjectUtils can be applied.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.