Skip to content

Commit

Permalink
[Fix] Wrong spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jjunjji committed May 30, 2023
1 parent e16e3ac commit dca7c36
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ControlDesk.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void assignLane() {
curLane.assignParty(((Party) partyQueue.next()));
}
}
publish(new PatyQueueEvent(getPartyQueue()));
publish(new PartyQueueEvent(getPartyQueue()));
}

/**
Expand All @@ -162,7 +162,7 @@ public void addPartyQueue(Vector partyNicks) {
}
Party newParty = new Party(partyBowlers);
partyQueue.add(newParty);
publish(new PatyQueueEvent(getPartyQueue()));
publish(new PartyQueueEvent(getPartyQueue()));
}

/**
Expand Down Expand Up @@ -213,7 +213,7 @@ public void subscribe(ControlDeskObserver adding) {
*
*/

public void publish(PatyQueueEvent event) {
public void publish(PartyQueueEvent event) {
Iterator eventIterator = subscribers.iterator();
while (eventIterator.hasNext()) {
(
Expand Down
2 changes: 1 addition & 1 deletion ControlDeskObserver.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@

public interface ControlDeskObserver {

public void receiveControlDeskEvent(PatyQueueEvent pe);
public void receiveControlDeskEvent(PartyQueueEvent pe);

}
2 changes: 1 addition & 1 deletion ControlDeskView.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void updateAddParty(AddPartyView addPartyView) {
*
*/

public void receiveControlDeskEvent(PatyQueueEvent pe) {
public void receiveControlDeskEvent(PartyQueueEvent pe) {
partyList.setListData(pe.getPartyQueue());
}
}
4 changes: 2 additions & 2 deletions PatyQueueEvent.java → PartyQueueEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import java.util.*;

public class PatyQueueEvent {
public class PartyQueueEvent {

/** A representation of the wait queue, containing party names */
private Vector<Party> partyQueue;
Expand All @@ -27,7 +27,7 @@ public class PatyQueueEvent {
*
*/

public PatyQueueEvent(Vector<Party> partyQueue ) {
public PartyQueueEvent(Vector<Party> partyQueue ) {
this.partyQueue = partyQueue;
}

Expand Down

0 comments on commit dca7c36

Please sign in to comment.