From d65f6d379cbda4f9d81ffe36b141bd370085f889 Mon Sep 17 00:00:00 2001 From: Subodh Ranadive Date: Thu, 4 Mar 2021 15:15:46 +0530 Subject: linting fixed --- src/main/java/org/traccar/config/Keys.java | 6 +++--- src/main/java/org/traccar/sms/SnsSmsClient.java | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/main/java/org/traccar') diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 423c6a31b..937510f10 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -691,14 +691,14 @@ public final class Keys { * AWS Access Key with SNS permission. */ public static final ConfigKey AWS_ACCESS_KEY = new ConfigKey<>( - "aws.access_key", + "aws.access", Collections.singletonList(KeyType.GLOBAL)); /** * AWS Secret Access Key with SNS permission. */ public static final ConfigKey AWS_SECRET_KEY = new ConfigKey<>( - "aws.secret_key", + "aws.secret", Collections.singletonList(KeyType.GLOBAL)); /** @@ -706,7 +706,7 @@ public final class Keys { * Use 'enable' to send message with SNS or 'disable' to stop using SNS */ public static final ConfigKey AWS_SNS_ENABLED = new ConfigKey<>( - "aws.sns_enabled", + "aws.sns.enabled", Collections.singletonList(KeyType.GLOBAL)); /** diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java index cacf08811..dcfe5b536 100644 --- a/src/main/java/org/traccar/sms/SnsSmsClient.java +++ b/src/main/java/org/traccar/sms/SnsSmsClient.java @@ -17,7 +17,7 @@ import java.util.HashMap; import java.util.Map; -public class SnsSmsClient implements SmsManager{ +public class SnsSmsClient implements SmsManager { private static final Logger LOGGER = LoggerFactory.getLogger(SnsSmsClient.class); private final String access_key; @@ -57,7 +57,8 @@ public class SnsSmsClient implements SmsManager{ } @java.lang.Override - public void sendMessageSync(String destAddress, String message, boolean command) throws InterruptedException, MessageException { + public void sendMessageSync(String destAddress, String message, boolean command) + throws InterruptedException, MessageException { sendSNSMessage(message, destAddress); } -- cgit v1.2.3