0
더 어떤 방법 필드 천장이없는 것처럼 this
이 실제로 필요하지 않습니다 여기에서 볼 수 있듯이이Checkstyle '이'키워드 남용 감지
private ServiceClass service = ...
public void someMethod(String param) {
String result = this.service.find(param);
if(!this.isValid(result)) {
throw new RuntimeException();
} else {
return result;
}
}
private boolean isValid(String param) {
...
}
과 같은 코드를 검출하는 Checkstyle 모듈이 있습니다.
모듈은 내 요구에 가깝지만 사용량이 많지 않은 것으로 판단됩니다.