Assignment can be replaced with operator assignment
Reports assignment operations which can be replaced by operator-assignment.
Code using operator assignment is shorter and may be clearer.
After the quick fix is applied:
Use the Ignore conditional operators option to ignore
||. Replacing conditional operators with operator assignment would change the evaluation from lazy to eager, which may change the semantics of the expression.
Use the Ignore obscure operators option to ignore
%, which are less known.
Ignore conditional operators
Ignore the obscure ^ and % operators
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3