O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Change parameters refactoring

Suppose we've written a method and we want to change the signature of it. Perhaps, we didn't originally envision what parameters we would need to pass into a method, or perhaps we're passing too many parameters and want to change the method signature to take a class that will represent all our parameters instead. The NetBeans Change Method Parameters… refactor helps us in these situations.

Getting ready

First we will need a Java project so that we can change the parameters of a method. We will use the same project from the earlier recipe, Rename refactoring, and so ensure that you have the project open from the end of that recipe. If you have not followed that recipe, the project is available from the code download ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required