Community
Participate
Working Groups
This came out of a discussion on https://bugs.eclipse.org/bugs/show_bug.cgi?id=102287 which is a request to add an Introduce Parameter Object refactoring. 102287 talks about a way to help do the Introduce Param Object refactoring currently by making an anonymous inner class, then using the Convert Anonymous to Nested refactoring. I did this in some of my code and was left with the following: new IMethodFormattingTester("myMethod", "S,i", (new String[] {"QString;","I"}), "MyClass").doTest(); It would be nice to then refactor this long param constructor into setters, something like this: IMethodFormattingTester tester = new IMethodFormattingTester(); tester.setMethodName = "myMethod"; tester.setExpectedParams = "S,i"; tester.setParams = (new String[] {"QString;","I"}); tester.setClassName = "MyClass"; tester.doTest();