diff options
author | Subodh Ranadive <subodh.ranadive@ekzero.com> | 2021-03-04 15:15:46 +0530 |
---|---|---|
committer | Subodh Ranadive <subodh.ranadive@ekzero.com> | 2021-03-24 15:30:31 +0530 |
commit | d65f6d379cbda4f9d81ffe36b141bd370085f889 (patch) | |
tree | 49b92515cb1ab35946f6afc4795ff64bab4c590e /src/main/java | |
parent | 1705812639b9ca5e16ac1a0a96a7384b581e41e3 (diff) | |
download | traccar-server-d65f6d379cbda4f9d81ffe36b141bd370085f889.tar.gz traccar-server-d65f6d379cbda4f9d81ffe36b141bd370085f889.tar.bz2 traccar-server-d65f6d379cbda4f9d81ffe36b141bd370085f889.zip |
linting fixed
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 6 | ||||
-rw-r--r-- | src/main/java/org/traccar/sms/SnsSmsClient.java | 5 |
2 files changed, 6 insertions, 5 deletions
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<String> 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<String> 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<String> 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); } |