Rename Parameter / IllegalArgumentException
I recently started using IllegalArgumentExceptions for null arguments
and other errors. It would be cool if IDEA could rename String arguments
to IllegalArgumentException constructors when I rename a parameter.
Mike
Please sign in to leave a comment.
If you enable the checkbox "Search in comments and strings" it should work.
>> I recently started using IllegalArgumentExceptions for null arguments
>> and other errors. It would be cool if IDEA could rename String
>> arguments to IllegalArgumentException constructors when I rename a
>> parameter.
>>
>>
I tried that before I posted and it didn't work. Besides, "Search in
comments and strings" is a feature that I fear and loath ... I once
forgot to uncheck that option, renamed a few local variables and screwed
up my sql statements ... seriously, IDEA should have an option "Alert
and ask me twice every time I accidentally decide to search in comments
and strings for any refactoring" ... at least if you're renaming
variables like a-z, to, in, ... that feature is a timebomb ;)