mirror of https://github.com/sbt/sbt.git
Remove redundant try/catch.
This commit is contained in:
parent
ce0a2a3625
commit
4abefbd3b6
|
|
@ -66,15 +66,11 @@ public class ForkMain {
|
||||||
public Result result() { return result;}
|
public Result result() { return result;}
|
||||||
public Throwable error() { return null; }
|
public Throwable error() { return null; }
|
||||||
}
|
}
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
Socket socket = new Socket(InetAddress.getByName(null), Integer.valueOf(args[0]));
|
||||||
Socket socket = new Socket(InetAddress.getByName(null), Integer.valueOf(args[0]));
|
final ObjectInputStream is = new ObjectInputStream(socket.getInputStream());
|
||||||
final ObjectInputStream is = new ObjectInputStream(socket.getInputStream());
|
final ObjectOutputStream os = new ObjectOutputStream(socket.getOutputStream());
|
||||||
final ObjectOutputStream os = new ObjectOutputStream(socket.getOutputStream());
|
new Run().run(is, os);
|
||||||
new Run().run(is, os);
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
private static class Run {
|
private static class Run {
|
||||||
boolean matches(Fingerprint f1, Fingerprint f2) {
|
boolean matches(Fingerprint f1, Fingerprint f2) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue