Skip to content
Snippets Groups Projects
Commit dcc5ac20 authored by WinJ's avatar WinJ
Browse files

22sp

Fixed toString method for Dictionary causing problems debugging when student iterator is not working
Fixed case "PART" should be case "QUIT" since the message that comes from the server is "QUIT" when someone quits the server.
parent 671c5537
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,7 @@ public class UMessageServerConnection extends Thread {
String cmd = line.split(" ")[1];
final String[] lineParts = line.split(":");
switch (cmd) {
case "PART":
case "QUIT":
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
......
......@@ -44,4 +44,13 @@ public class ChainingHashTable<K, V> extends DeletelessDictionary<K, V> {
public Iterator<Item<K, V>> iterator() {
throw new NotYetImplementedException();
}
/**
* Temporary fix so that you can debug on IntelliJ properly despite a broken iterator
* Remove to see proper String representation (inherited from Dictionary)
*/
@Override
public String toString() {
return "ChainingHashTable String representation goes here.";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment