🔖 오늘 읽은 범위 : 4장, 주석 (~ p.94 나쁜 주석)
// this.closed가 true일 때 반환되는 유틸리티 메서드다.
// 타임아웃에 도달하면 예외를 던진다.
public synchronized void waitForClose(final long timeoutMillis) throws Exception {
if ( ! closed ) {
wait ( timeoutMillis ) ;
if ( ! closed )
throw new Exception("MockResponseSender could not be closed");
}
}
/**
* 월 중 일자틀 반환한다.
*
* @return 월 증 일자
*/
public int getDayOfMonth () {
return dayOfMonth ;
}
// 전역 목록 <smodule>에 속하는 모듈이 우리가 속한 하위 시스템에 의존하는가?
if (smodule.getDependSubsystems().contains(subSysMod.getSubSystem()))
이 코드에서 주석을 없애고 다시 표현하면 다음과 같다.
Arraylist moduleDependees = smodule.getDependSubsystems();
String ourSubSystem = subSysMod.getSubSystem();
if (moduleDependees.contains(ourSubSystem))
// Actions //////////////////////////////////