Replaces explicit generic type arguments with Java 7 diamond operator (<>). Scans +/-2 lines for the pattern, skips already-converted lines. Removes JADE-FLAG:DIAMOND_OPERATOR comments. Atomic write. Invoked by jade-core-rule-dispatcher.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add TheRealSeber/PolishedJADEite --skill jade-recipe-1.7-diamond-operator --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Jade Recipe 1.7 Diamond Operator?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/therealseber-jade-recipe-1-7-diamond-operator)More formats (shields.io, HTML) on the badges page.
---
name: jade-recipe-1.7-diamond-operator
description: >-
Replaces explicit generic type arguments with Java 7 diamond operator (<>).
Scans +/-2 lines for the pattern, skips already-converted lines.
Removes JADE-FLAG:DIAMOND_OPERATOR comments. Atomic write.
Invoked by jade-core-rule-dispatcher.
arguments: [--file, --line]
---
# jade-recipe-1.7-diamond-operator
Converts `new HashMap<String, String>()` → `new HashMap<>()` for Java 7
type inference. Handles the edge case where the flag comment is adjacent
to (not on) the matched line. Skips lines already using `<>`.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!