jade-recipe-1.5-1.6-navigable-set-map

Skip TreeSet and TreeMap migration changes for Java 6 NavigableSet and NavigableMap cases.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/TheRealSeber/PolishedJADEite --skill jade-recipe-1-5-1-6-navigable-set-map
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jade-recipe-1.5-1.6-navigable-set-map
Source: https://github.com/TheRealSeber/PolishedJADEite/tree/main/.claude/skills/jade-recipe-1.5-1.6-navigable-set-map
Command: npx skills add https://github.com/TheRealSeber/PolishedJADEite --skill jade-recipe-1-5-1-6-navigable-set-map

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill prevents unnecessary migration work by identifying Java 6 collection cases where TreeSet and TreeMap already satisfy NavigableSet and NavigableMap behavior.

Core Features & Use Cases

  • Recognizes informational rules that should be skipped instead of transformed.
  • Verifies TreeSet or TreeMap usage in flagged files and confirms the code compiles on Java 6 or later.
  • Returns a deterministic SKIPPED result with a warning message for batch migration pipelines.
  • Provides fallback guidance for retyping SortedSet or SortedMap variables when navigation methods such as ceiling, floor, higher, or lower are needed.

Quick Start

Use this skill to review a flagged Java file and mark the rule as skipped when the code only relies on TreeSet or TreeMap behavior already provided by Java 6.

Frequently Asked Questions about jade-recipe-1.5-1.6-navigable-set-map

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I skip unnecessary TreeSet and TreeMap migration rules in Java 6?

To skip unnecessary Java 6 migration rules for TreeSet and TreeMap, verify the code compiles on Java 6 or later and return a deterministic SKIPPED result with zero changes. This prevents unnecessary transformations when collections already implement NavigableSet and NavigableMap.

Why does my migration tool flag TreeSet or TreeMap files that already implement NavigableSet?

Migration tools flag TreeSet or TreeMap files because they may not recognize that these collections already satisfy NavigableSet and NavigableMap behavior in Java 6. Applying a no-op skip rule with an explanatory warning resolves these false positives without modifying code.

When do I need to retype SortedSet or SortedMap variables during a Java migration?

You need to retype SortedSet or SortedMap variables during a Java migration when the code requires navigation methods such as ceiling, floor, higher, or lower. If the code only relies on standard TreeSet or TreeMap behavior, the migration rule should be skipped.

Can I return a skipped status with zero changes for batch JADE migration pipelines?

Yes, you can return a deterministic SKIPPED status with zero changes for batch JADE migration pipelines. The workflow flags Java source files and uses a script to return the skipped result alongside an explanatory warning without modifying the original code.

What is the best way to handle false positive migration flags for Java 6 collection classes?

The best way to handle false positive migration flags for Java 6 collection classes is to implement a no-op dispatch rule. This rule confirms TreeSet or TreeMap usage and returns a SKIPPED status with an explanatory warning, ensuring no unnecessary code modifications occur.