문제

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 ?

도움이 되었습니까?

해결책

I think you are looking for the ExplicitInitialization check.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top