Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Auto-add the "final" modifier to newly declared variables/values

$
0
0

How can I auto-add the final modifier to newly declared variables? What I want is to write

 

int i = 42;

 

and having this variable automatically converted to a value using the final modifier, so this line would look like:

 

final int i = 42;


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>