From 5c102511b5b29d89713018a790ed91404c805db4 Mon Sep 17 00:00:00 2001 From: Subodh Ranadive Date: Wed, 24 Mar 2021 15:38:57 +0530 Subject: Linting fixed --- src/main/java/org/traccar/sms/SnsSmsClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java index 1741b5559..44526f655 100644 --- a/src/main/java/org/traccar/sms/SnsSmsClient.java +++ b/src/main/java/org/traccar/sms/SnsSmsClient.java @@ -61,16 +61,16 @@ public class SnsSmsClient implements SmsManager { smsAttributes.put("AWS.SNS.SMS.SMSType", new MessageAttributeValue().withStringValue("Transactional").withDataType("String")); - PublishRequest pubReq = new PublishRequest().withMessage(message) + PublishRequest publishRequest = new PublishRequest().withMessage(message) .withPhoneNumber(destAddress).withMessageAttributes(smsAttributes); - snsClient.publishAsync( pubReq, new AsyncHandler() { + snsClient.publishAsync(publishRequest, new AsyncHandler() { @Override - public void onError( Exception exception) { + public void onError(Exception exception) { LOGGER.error("SMS send failed", exception); } @Override - public void onSuccess( PublishRequest request, PublishResult result ) { + public void onSuccess(PublishRequest request, PublishResult result) { LOGGER.info("SMS sent successfully"); } }); -- cgit v1.2.3