Search code examples
javaeclipsemethodsfinal

Final in method parameter in eclipse


When I try to put final in method parameter eclipse doesn't help. Any idea how to get this to work?

final in method parameter


Solution

  • I don't think this is possible.

    The closest thing to this is to set a "save action" which will automatically add final modifiers to method parameters when you save the file.

    Preferences > Java > Editor > Save Actions