From 5d43235b3d1fb967c8df269d2bdedb2164e726b2 Mon Sep 17 00:00:00 2001 From: Subodh Ranadive Date: Mon, 8 Mar 2021 13:08:16 +0530 Subject: Resloved requested changes --- src/main/java/org/traccar/sms/SnsSmsClient.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java index 0c2be0bd2..c2d568aa8 100644 --- a/src/main/java/org/traccar/sms/SnsSmsClient.java +++ b/src/main/java/org/traccar/sms/SnsSmsClient.java @@ -69,10 +69,8 @@ public class SnsSmsClient implements SmsManager { public void sendMessageAsync(String destAddress, String message, boolean command) { try { sendMessageSync(destAddress, message, command); - } catch (InterruptedException interruptedException) { - LOGGER.warn("SMS send failed", interruptedException.getMessage()); - } catch (MessageException messageException) { - LOGGER.warn("SMS send failed", messageException.getMessage()); + } catch (InterruptedException | MessageException exception) { + LOGGER.warn("SMS send failed", exception.getMessage()); } } } -- cgit v1.2.3