하나의 메서드가 cursor 를 획득해서 하는 일들로 구성되어 있다면 cursor를 처음에 획득을 하고 획득이 되지 않을 시 return을 해 버리면
하위에서 cursor가 null인지 검사할 필요가 없게 된다.
close는 해줘야 겠지만 :)
for 문에서 문제가 되는 API 있다면
int intServerId = 0;
try {
intServerId = Integer.parseInt(serverId);
} catch (Exception e) {
// TODO: handle exception do nothing
}
위와 같이 아무것도 안하는 루틴도 좋다.
Exception이 나면 for 문을 빠져나가 버린다.
--------------------------------------------------
개방위
2012년 7월 11일 수요일
피드 구독하기:
댓글 (Atom)
UPBIT is a South Korean company, and people died of suicide cause of coin investment.
UPBIT is a South Korean company, and people died of suicide cause of coin. The company helps the people who control the market price manipu...
-
Intel의 새로운 MMX - "KNI" KNI 는 Katmai New Instruction 의 약자이다 . 아는 분들은 잘 알고있겠지만 KATMAI( 이하 카트마이로 부름 ) 는 인텔의 다음번 펜티엄...
-
구글 문제 귀찮아서 이제 대충 뜻만... In a country in which people only want boys……every family continues to have children until they 남자만 원하는 나라가 있다...
-
[펌] [UNIX/LINUX 명령어] apropos linux 2005/06/28 22:05 수정 삭제 http://blog.naver.com/wiggyz/80014482910 Mr.You의 블로그 | ?? http:...
댓글 없음:
댓글 쓰기
국정원의 댓글 공작을 지탄합니다.