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

2 comments

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)
0

Please sign in to leave a comment.