aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-24 15:38:57 +0530
committerSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-24 15:38:57 +0530
commit5c102511b5b29d89713018a790ed91404c805db4 (patch)
tree263e189e0f5fbd5057f9419e955b5fb79b71d94b
parent6b6fde98cec480405010eae7a9b07db7ccd4ae82 (diff)
downloadtraccar-server-5c102511b5b29d89713018a790ed91404c805db4.tar.gz
traccar-server-5c102511b5b29d89713018a790ed91404c805db4.tar.bz2
traccar-server-5c102511b5b29d89713018a790ed91404c805db4.zip
Linting fixed
-rw-r--r--src/main/java/org/traccar/sms/SnsSmsClient.java8
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");
}
});