Remove redundant try/catch.

This commit is contained in:
Eugene Vigdorchik 2012-04-02 23:56:42 +04:00
parent ce0a2a3625
commit 4abefbd3b6
1 changed files with 5 additions and 9 deletions

View File

@ -66,15 +66,11 @@ public class ForkMain {
public Result result() { return result;}
public Throwable error() { return null; }
}
public static void main(String[] args) {
try {
Socket socket = new Socket(InetAddress.getByName(null), Integer.valueOf(args[0]));
final ObjectInputStream is = new ObjectInputStream(socket.getInputStream());
final ObjectOutputStream os = new ObjectOutputStream(socket.getOutputStream());
new Run().run(is, os);
} catch (Exception e) {
e.printStackTrace();
}
public static void main(String[] args) throws Exception {
Socket socket = new Socket(InetAddress.getByName(null), Integer.valueOf(args[0]));
final ObjectInputStream is = new ObjectInputStream(socket.getInputStream());
final ObjectOutputStream os = new ObjectOutputStream(socket.getOutputStream());
new Run().run(is, os);
}
private static class Run {
boolean matches(Fingerprint f1, Fingerprint f2) {