diff options
author | Anton Tananaev <anton@traccar.org> | 2023-03-06 09:43:30 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-03-06 09:43:30 -0800 |
commit | 240fa0061368d27d950443ebf571aa2b6bf9dae3 (patch) | |
tree | 637e3272e30afb4906fbc384dae932fdb990f03e /src/main/java/org | |
parent | d80bf8c6b4e320ec03c0ed31fa460f636f5c6358 (diff) | |
download | trackermap-server-240fa0061368d27d950443ebf571aa2b6bf9dae3.tar.gz trackermap-server-240fa0061368d27d950443ebf571aa2b6bf9dae3.tar.bz2 trackermap-server-240fa0061368d27d950443ebf571aa2b6bf9dae3.zip |
Explicit switch cases
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/MainModule.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java index 96928b295..ae42d6712 100644 --- a/src/main/java/org/traccar/MainModule.java +++ b/src/main/java/org/traccar/MainModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 - 2022 Anton Tananaev (anton@traccar.org) + * Copyright 2018 - 2023 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -333,6 +333,7 @@ public class MainModule extends AbstractModule { return new EventForwarderKafka(config, objectMapper); case "mqtt": return new EventForwarderMqtt(config, objectMapper); + case "json": default: return new EventForwarderJson(config, client); } @@ -351,6 +352,7 @@ public class MainModule extends AbstractModule { return new PositionForwarderKafka(config, objectMapper); case "redis": return new PositionForwarderRedis(config, objectMapper); + case "url": default: return new PositionForwarderUrl(config, client, objectMapper); } |