java intelliJ 变量下出现下划线
作者:互联网
-
reassigned local variables and reassigned parameters are underlined.
-
When reading a very long method code, if the parameter is not underlined, you know for sure that its value is not reassigned anywhere in this method and it contains exactly the same value that was passed to this method at any point.
-
many developers prefer to avoid mutable state, and reassign variables only in rare cases when it is really necessary.
-
use final to mark non-mutable variables
标签:java,下划线,variables,value,reassigned,underlined,mutable,method,intelliJ 来源: https://blog.csdn.net/DecafTea/article/details/111387787