diff options
author | Subodh Ranadive <subodh.ranadive@ekzero.com> | 2021-03-24 15:38:57 +0530 |
---|---|---|
committer | Subodh Ranadive <subodh.ranadive@ekzero.com> | 2021-03-24 15:38:57 +0530 |
commit | 5c102511b5b29d89713018a790ed91404c805db4 (patch) | |
tree | 263e189e0f5fbd5057f9419e955b5fb79b71d94b /src | |
parent | 6b6fde98cec480405010eae7a9b07db7ccd4ae82 (diff) | |
download | trackermap-server-5c102511b5b29d89713018a790ed91404c805db4.tar.gz trackermap-server-5c102511b5b29d89713018a790ed91404c805db4.tar.bz2 trackermap-server-5c102511b5b29d89713018a790ed91404c805db4.zip |
Linting fixed
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/sms/SnsSmsClient.java | 8 |
1 files 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<PublishRequest, PublishResult>() { + snsClient.publishAsync(publishRequest, new AsyncHandler<PublishRequest, PublishResult>() { @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"); } }); |