From 36a9e84fbef07a67ffef70a5cd25f53709e0d012 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 3 May 2017 10:40:40 +0200 Subject: [PATCH] Collapsed catch block Signed-off-by: Jim Martens --- .../dis2013/authentication/PropertiesFileAuthenticator.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/03/src/de/dis2013/authentication/PropertiesFileAuthenticator.java b/03/src/de/dis2013/authentication/PropertiesFileAuthenticator.java index 5a3e125..6a78132 100644 --- a/03/src/de/dis2013/authentication/PropertiesFileAuthenticator.java +++ b/03/src/de/dis2013/authentication/PropertiesFileAuthenticator.java @@ -33,11 +33,7 @@ public class PropertiesFileAuthenticator implements Authenticator { this.username = properties.getProperty("username"); this.password = properties.getProperty("password"); - } catch (FileNotFoundException e1) { - e1.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } catch (URISyntaxException e) { + } catch (IOException | URISyntaxException e) { e.printStackTrace(); } }