jade-recipe-1.5-1.6-deque-retrofit
Informational rule. LinkedList already implements Deque in Java 6. No code change required. Invoked by jade-core-rule-dispatcher.
SKILL.md.claude/skills/java-migration-skill-registry/1.5-to-1.6/jade-recipe-1.5-1.6-deque-retrofit/SKILL.md
GitHubjade-recipe-1.5-1.6-deque-retrofit
Java 6 added the java.util.Deque interface, and java.util.LinkedList
already implements it. No source code change is required.
Automated transform (apply.py)
Returns SKIPPED for every file — informational rule only.
Agent fallback
- Verify the flagged file uses
LinkedList - Confirm the code compiles on Java 6+ (LinkedList implements Deque natively)
- Mark as SKIPPED — no transform needed
- Optionally replace
List<X> x = new LinkedList<>()withDeque<X> x = new LinkedList<>()if the variable is used only with Deque methods