aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-04 15:15:46 +0530
committerSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-24 15:30:31 +0530
commitd65f6d379cbda4f9d81ffe36b141bd370085f889 (patch)
tree49b92515cb1ab35946f6afc4795ff64bab4c590e
parent1705812639b9ca5e16ac1a0a96a7384b581e41e3 (diff)
downloadtrackermap-server-d65f6d379cbda4f9d81ffe36b141bd370085f889.tar.gz
trackermap-server-d65f6d379cbda4f9d81ffe36b141bd370085f889.tar.bz2
trackermap-server-d65f6d379cbda4f9d81ffe36b141bd370085f889.zip
linting fixed
-rw-r--r--src/main/java/org/traccar/config/Keys.java6
-rw-r--r--src/main/java/org/traccar/sms/SnsSmsClient.java5
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);
}