I think you are looking for the ExplicitInitialization check.
checkstyle to avoid default values?
-
23-07-2023 - |
Pregunta
I am using eclipse-cs i.e checkstyle plugin i am looking for module where it can show warning in case developer assigns the default value which is not required as default value fot int is 0.
public class Test {
public int size = 0;
}
I did not get any module .Any help ?
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow