بازگشت به نتایج جستجو

github / AGENT SKILL

java-refactoring-extract-method

فارسی + English

این اسکیل چه می‌کند؟

بازآرایی Java با استخراج متد برای خوانایی و نگهداشت بهتر؛ شناسایی متد با LOC > 15، بیش از ۱۰ statement یا پیچیدگی cyclomatic > 10 و استخراج بلوک منطقی به helper متمرکز. خروجی Java 17 کاملاً قابل‌کامپایل با نام گویا و comment مستندسازی تک‌خطی؛ حفظ همهٔ رفتار اصلی، کاهش بار شناختی و تست‌پذیری بهتر با متد کوچک و تک‌مسئولیتی.

ORIGINAL DESCRIPTION

Java method extraction refactoring for improved readability and maintainability. Identifies methods exceeding complexity thresholds (LOC > 15, statements > 10, cyclomatic complexity > 10) and extracts logical code blocks into focused helper methods Produces fully compilable Java 17 code with descriptive method names and single-line documentation comments Preserves all original functionality while reducing cognitive load and improving testability through smaller, single-responsibility methods

چه زمانی به کار می‌آید؟

در دادهٔ اصلی، کاربرد جداگانه‌ای ثبت نشده است. توضیح بالا و صفحهٔ منبع را ببینید.

کاربردهای مرتبط

برچسب‌گذاری خودکار بر اساس نام و توضیح؛ ممکن است نیازمند اصلاح باشد.