From: Jérôme Benoit Date: Wed, 14 Mar 2018 16:41:23 +0000 (+0100) Subject: Coding style cleanups. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b349a9de18d621c97723b3c1f0873aed30c3f32b;p=TD_SR.git Coding style cleanups. Signed-off-by: Jérôme Benoit --- diff --git a/TD2/server/BroadcastThreadService.java b/TD2/server/BroadcastThreadService.java index cd971c2..7a39e7a 100644 --- a/TD2/server/BroadcastThreadService.java +++ b/TD2/server/BroadcastThreadService.java @@ -19,7 +19,8 @@ public class BroadcastThreadService implements Runnable { try { doService(clientSocket, listWriter); clientSocket.close(); - } catch (IOException e) { + } + catch (IOException e) { System.err.println("IOException : " + e); e.printStackTrace(); } @@ -27,7 +28,8 @@ public class BroadcastThreadService implements Runnable { try { if (this.clientSocket != null) this.clientSocket.close(); - } catch (IOException e) { + } + catch (IOException e) { System.err.println("IOException : " + e); e.printStackTrace(); } diff --git a/TD2/server/BroadcastoThreadService.java b/TD2/server/BroadcastoThreadService.java index 4c72813..5ade5f3 100644 --- a/TD2/server/BroadcastoThreadService.java +++ b/TD2/server/BroadcastoThreadService.java @@ -19,7 +19,8 @@ public class BroadcastoThreadService implements Runnable { try { doService(clientSocket, listoWriter); clientSocket.close(); - } catch (IOException e) { + } + catch (IOException e) { System.err.println("IOException : " + e); e.printStackTrace(); } @@ -31,7 +32,8 @@ public class BroadcastoThreadService implements Runnable { try { if (this.clientSocket != null) this.clientSocket.close(); - } catch (IOException e) { + } + catch (IOException e) { System.err.println("IOException : " + e); e.printStackTrace(); } diff --git a/TD2/server/Main.java b/TD2/server/Main.java index 9c3b547..7a01138 100644 --- a/TD2/server/Main.java +++ b/TD2/server/Main.java @@ -22,7 +22,8 @@ public class Main { try { if (listenSocket != null) listenSocket.close(); - } catch (IOException e) { + } + catch (IOException e) { System.err.println("IOException : " + e); e.printStackTrace(); }