diff --git a/src/main/java/chat/UMessageServerConnection.java b/src/main/java/chat/UMessageServerConnection.java index e810a9a8e09ccfc405d82932119ff88ea68f4c6b..ee134b86f7d88ad707bf86a097d7ae1faa27ac16 100644 --- a/src/main/java/chat/UMessageServerConnection.java +++ b/src/main/java/chat/UMessageServerConnection.java @@ -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() { diff --git a/src/main/java/datastructures/dictionaries/ChainingHashTable.java b/src/main/java/datastructures/dictionaries/ChainingHashTable.java index bdc0f4c96049d1f5765162301f6639806f1256c5..078bb2d1761cea01a6e603492b3fca6ed2231561 100644 --- a/src/main/java/datastructures/dictionaries/ChainingHashTable.java +++ b/src/main/java/datastructures/dictionaries/ChainingHashTable.java @@ -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."; + } }