-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: 발급 티켓 도메인 메서드 정리 및 API 추가 #180
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿입니다요~
public void delete(IssuedTicket issuedTicket) { | ||
issuedTicket.cancelIssuedTicket(); | ||
issuedTicket.cancel(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cancel 로 통일시키는게 좋아보입니당!
티켓이 입장 미완료 상태가 아니면 입장 할 수 없음 | ||
*/ | ||
public void entrance() { | ||
if (this.issuedTicketStatus == IssuedTicketStatus.CANCELED) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
백기선 님 강좌듣는데 이넘값을 == 으로 비교하면 더 좋다 그러더라구요
this.issuedTicketStatus.equals(IssuedTicketStatus.CANCELED)
위방식보다
민준님 방식이 euqals 칠때 null 포인터 exception 까지 막을수 있으니
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리팩토링 굿굿!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿입니다👍
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
개요
작업사항
변경로직