From b349a9de18d621c97723b3c1f0873aed30c3f32b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 14 Mar 2018 17:41:23 +0100 Subject: [PATCH] Coding style cleanups. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TD2/server/BroadcastThreadService.java | 6 ++++-- TD2/server/BroadcastoThreadService.java | 6 ++++-- TD2/server/Main.java | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) 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(); } -- 2.34.1