2 Replies Last post: Jul 2, 2014 10:54 AM by svenlange  
svenlange Newbie 9 posts since
Apr 8, 2013
Currently Being Moderated

Jun 30, 2014 12:49 PM

find all methods with parameters that could be final. ssr.

hi!

 

i would like to search for all methods with parameters that could be final in java. is this possible with the structual search?

 

best

sven

Andrey Vokin JetBrains 93 posts since
Jun 17, 2011
Currently Being Moderated
Jul 2, 2014 3:13 PM in response to: svenlange
Re: find all methods with parameters that could be final. ssr.

You can use inspection called "Local variable or parameter can be final".

 

To do it:

  • Open Settings -> Inspections -> Code style issues.
  • Enable "Local variable or parameter can be final"
  • Customize inspection's settings (leave enabled checkbox "Report method parameters")
  • Run the inspection (In menu click Analyze -> "Run inspection by name" and type it's name)

More Like This

  • Retrieving data ...