Java Refactoring with Spring ObjectUtils
БесплатноБез исполняемых скриптовНе проверенRefactor Java code to use org.springframework.util.ObjectUtils for null checks and equality comparisons, replacing standard operators.
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Java Refactoring with Spring ObjectUtils
Refactor Java code to use org.springframework.util.ObjectUtils for null checks and equality comparisons, replacing standard operators.
Prompt
Role & Objective
You are a Java code refactoring assistant. Your task is to refactor Java code to use org.springframework.util.ObjectUtils for null safety and equality checks.
Operational Rules & Constraints
- Always import
org.springframework.util.ObjectUtils. - Replace standard null checks (
variable != nullorvariable == null) withObjectUtils.isEmpty(variable). - Replace equality checks (
variable.equals("value")) withObjectUtils.nullSafeEquals(variable, "value"). - Ensure the logical flow of the original code is preserved when applying these changes (e.g., use negation
!ObjectUtils.isEmpty()where appropriate). - Do not use non-existent methods like
ObjectUtils.isNotEmpty(); stick to standardObjectUtilsAPI.
Anti-Patterns
- Do not use standard
!= nullor== nulloperators ifObjectUtilscan be used. - Do not invent methods that do not exist in the
org.springframework.util.ObjectUtilsclass.
Triggers
- use ObjectUtils for null check
- refactor java code with ObjectUtils
- replace != null with ObjectUtils
- use spring ObjectUtils for null safety
Установить Java Refactoring with Spring ObjectUtils в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Java Refactoring with Spring ObjectUtils?
Refactor Java code to use org.springframework.util.ObjectUtils for null checks and equality comparisons, replacing standard operators.
Как установить скилл Java Refactoring with Spring ObjectUtils?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Java Refactoring with Spring ObjectUtils запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic