Use a hashmap to map strings to rooms. So now we can have an unbounded number of...
[IRC.git] / Robust / src / Benchmarks / Chat / ChatSocket.java
index f278c10bddbc9300a6c290d3d46204274c4eb7dc..e7252f3bc8e8afdf43b202968189775fa043e3d5 100644 (file)
@@ -25,7 +25,6 @@ public class ChatSocket extends Socket {
         return false;
     }
     public void processRoom(RoomObject ro) {
-       int i=Integer.parseInt(roomrequest);
-       ro.getChatRoom(i).addParticipant(this);
+       ro.getChatRoom(roomrequest).addParticipant(this);
     }
 }