java - How to auto fix checkstyle warnings of FinalLocalVariable and FinalParameters by Intellij -


code style has rules: finallocalvariable finalparameters

it give warning like: parameter xxx should final.

some people don't add final while writing code. in case team has practice add that. how can easier add them up?

find in setting -> editor -> inspections. search keyword "final". in "code style issues", check "local variable or parameter can final" , make sure "report local variables" , "report method parameters" checked.

then run analyze -> inspect code. make sure select profile created in "inspection profile".

then can auto fix them in "inspection results" panel. enter image description here

enter image description here


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -