Is the a way, when implementing overriding method stubs, to ...

Is the a way, when implementing overriding method stubs, to have the argument names match what is declared in the base class?

For example if I have:

//BaseClass
abstract void someMethod( Object fooBar);

When I have the stub autogenerated in my extending class IDEA will create:

public void someMethod(Object object) { }

But I'd rather it preserve the fooBar argument name as well:

public void someMethod(Object fooBar ) { }

Is there a setting somwhere to enforce this?

2 comments
Comment actions Permalink

This should happen automatically if there is the source code for the base class available. Without the source however, IDEA cannot figure out the names of the parameters and will assign generated names.

Sascha

0
Comment actions Permalink

Hello Rick,

Similar issue IDEADEV-6849 claimed fixed in a build just released.

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Is the a way, when implementing overriding method stubs, to have the
argument names match what is declared in the base class?

For example if I have:

//BaseClass
abstract void someMethod( Object fooBar);
When I have the stub autogenerated in my extending class IDEA will
create:

public void someMethod(Object object) { }

But I'd rather it preserve the fooBar argument name as well:

public void someMethod(Object fooBar ) { }

Is there a setting somwhere to enforce this?



0

Please sign in to leave a comment.