# | Line 116 | Line 116 | public class Smtp { | |
---|---|---|
116 | public void sendCommand(String cmd, int reply) throws IOException { | |
117 | _socketOut.println(cmd); | |
118 | String temp = _socketIn.readLine(); | |
119 | < | if (!temp.startsWith(new String(reply))) { |
119 | > | if (!temp.startsWith(new Integer(reply).toString())) { |
120 | throw new IOException ("Expected " + reply + ", got " + temp); | |
121 | } | |
122 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |