Assignment can be joined with declaration
Reports variable assignments that can be joined with a variable declaration.
Example:
int x;
x = 1;
The quick-fix converts the assignment into an initializer:
int x = 1;
New in 2018.3
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023