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

上一篇:「MySQL」- 系统变量(System Variables) @20210227


下一篇:Content-disposition