aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/JidoProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/protocol/JidoProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/JidoProtocolDecoder.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/main/java/org/traccar/protocol/JidoProtocolDecoder.java b/src/main/java/org/traccar/protocol/JidoProtocolDecoder.java
index 98fb36e11..d843ba675 100644
--- a/src/main/java/org/traccar/protocol/JidoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/JidoProtocolDecoder.java
@@ -66,14 +66,11 @@ public class JidoProtocolDecoder extends BaseProtocolDecoder {
.compile();
private String decodeAlarm(int type) {
- switch (type) {
- case 3:
- return Position.ALARM_LOW_BATTERY;
- case 4:
- return Position.ALARM_TAMPERING;
- default:
- return null;
- }
+ return switch (type) {
+ case 3 -> Position.ALARM_LOW_BATTERY;
+ case 4 -> Position.ALARM_TAMPERING;
+ default -> null;
+ };
}
@Override