aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-21 18:27:08 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-21 18:27:08 -0800
commit6ca6c510843bf5fe0aa49aa00237dc077fdf1589 (patch)
treef73a2ab2ac96e2826b118c0dcae95ee5bc889538 /src/org
parentcb4ba475c71cd83a2bde40938216b55e8f686207 (diff)
downloadtraccar-server-6ca6c510843bf5fe0aa49aa00237dc077fdf1589.tar.gz
traccar-server-6ca6c510843bf5fe0aa49aa00237dc077fdf1589.tar.bz2
traccar-server-6ca6c510843bf5fe0aa49aa00237dc077fdf1589.zip
Fix assisted injection issue (fix #4229)
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/WebDataHandler.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/org/traccar/WebDataHandler.java b/src/org/traccar/WebDataHandler.java
index 68c6f5e7c..572252a22 100644
--- a/src/org/traccar/WebDataHandler.java
+++ b/src/org/traccar/WebDataHandler.java
@@ -18,8 +18,6 @@ package org.traccar;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.inject.assistedinject.Assisted;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import org.traccar.database.IdentityManager;
import org.traccar.helper.Checksum;
import org.traccar.model.Device;
@@ -42,8 +40,6 @@ import java.util.TimeZone;
public class WebDataHandler extends BaseDataHandler {
- private static final Logger LOGGER = LoggerFactory.getLogger(WebDataHandler.class);
-
private static final String KEY_POSITION = "position";
private static final String KEY_DEVICE = "device";
@@ -56,13 +52,14 @@ public class WebDataHandler extends BaseDataHandler {
private final boolean json;
public interface Factory {
- WebDataHandler create(String url, String header, boolean json);
+ WebDataHandler create(
+ @Assisted("url") String url, @Assisted("header") String header, boolean json);
}
@Inject
public WebDataHandler(
IdentityManager identityManager, ObjectMapper objectMapper, Client client,
- @Assisted String url, @Assisted String header, @Assisted boolean json) {
+ @Assisted("url") String url, @Assisted("header") String header, @Assisted boolean json) {
this.identityManager = identityManager;
this.objectMapper = objectMapper;
this.client = client;