Skip to content

Commit

Permalink
Finished TODO: Depending on a static method violates the Dependency I…
Browse files Browse the repository at this point in the history
…nversion Principle and Open-Closed Principle.
  • Loading branch information
wubin28 committed Jun 11, 2014
1 parent 6c13ede commit b32189e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public TicketDispenser() {

public TurnTicket getTurnTicket()
{
// TODO: Depending on a static method violates the Dependency Inversion Principle and Open-Closed Principle.
int newTurnNumber = TurnNumberSequence.getNextTurnNumber();
int newTurnNumber = this.turnNumberSequence.getNextTurnNumber();
TurnTicket newTurnTicket = new TurnTicket(newTurnNumber);

return newTurnTicket;
Expand Down

0 comments on commit b32189e

Please sign in to comment.