Skip to content

Commit

Permalink
Added TODO: Depending on a static method violates the Dependency Inve…
Browse files Browse the repository at this point in the history
…rsion Principle and Open-Closed Principle.
  • Loading branch information
wubin28 committed Jun 11, 2014
1 parent 73e265a commit 8927ebc
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -4,6 +4,7 @@ public class TicketDispenser
{
public TurnTicket getTurnTicket()
{
// TODO: Depending on a static method violates the Dependency Inversion Principle and Open-Closed Principle.
int newTurnNumber = TurnNumberSequence.getNextTurnNumber();
TurnTicket newTurnTicket = new TurnTicket(newTurnNumber);

Expand Down

0 comments on commit 8927ebc

Please sign in to comment.