apache / apache/grails-intellij-plugin

Grails. Add "Move Method" refactoring option.

Open
#205 0 comments 0 reactions 0 assignees View on GitHub
enhancement imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

We recently had to split a grails service in two separate classes and move the corresponding tests as well. This was difficult to do manually.

It should be possible to implement refactoring for moving a service method, since they are stateless. It should also be simple enough to automate the refactoring for moving a test method from a test class to another - since, again, these are typically stateless or use private fields or methods that are not referred from other classes.

---

*Imported from [IDEA-141434](https://youtrack.jetbrains.com/issue/IDEA-141434) · Type: Feature · Votes: 1*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by locating the plugin's existing refactoring implementations and inspect how service and test classes are represented; define the supported move cases and verify completion with focused refactoring tests for moving service methods and test methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.