FDT has new quick fixes to change function signatures to match the arguments in their calls.

 

Add parameters

In this case the method Init accepts only 2 arguments but the call has 3.

The proposal will add the new second parameter view to method Init. The type of the new parameter is gained by the second argument. Here it is View. After applying the proposal you can choose the type of the new parameter as you can see here:

 

Drop parameters

The method init has 3 parameters and the call offers only 2. The proposal will drop the second parameter i.

 

Reorder parameters

The method init has 3 parameters and it is also called with 3 arguments but not in the same order.


The proposal will reorder the parameters to match the call. The types of the arguments and the parameters are used to determine the new order of the parameters. Here you can see the new order of the parameters: