From 8a71123afda774b440690362f937a0402cadebdd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 21 Dec 2015 15:38:48 +1300 Subject: Fix style issues and unused imports --- src/org/traccar/api/resource/CommandResource.java | 1 - src/org/traccar/model/Command.java | 2 +- src/org/traccar/protocol/MegastekProtocol.java | 2 -- src/org/traccar/web/CommandServlet.java | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/org/traccar/api/resource/CommandResource.java b/src/org/traccar/api/resource/CommandResource.java index 3cd39d182..f41faae2e 100644 --- a/src/org/traccar/api/resource/CommandResource.java +++ b/src/org/traccar/api/resource/CommandResource.java @@ -25,7 +25,6 @@ import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; @Path("commands") @Produces(MediaType.APPLICATION_JSON) diff --git a/src/org/traccar/model/Command.java b/src/org/traccar/model/Command.java index bc99967b6..59e96be0e 100644 --- a/src/org/traccar/model/Command.java +++ b/src/org/traccar/model/Command.java @@ -17,7 +17,7 @@ package org.traccar.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -@JsonIgnoreProperties(ignoreUnknown=true) +@JsonIgnoreProperties(ignoreUnknown = true) public class Command extends Extensible { public static final String TYPE_POSITION_SINGLE = "positionSingle"; diff --git a/src/org/traccar/protocol/MegastekProtocol.java b/src/org/traccar/protocol/MegastekProtocol.java index 76afc6ad5..cdf891afe 100644 --- a/src/org/traccar/protocol/MegastekProtocol.java +++ b/src/org/traccar/protocol/MegastekProtocol.java @@ -17,11 +17,9 @@ package org.traccar.protocol; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; -import org.jboss.netty.handler.codec.frame.LineBasedFrameDecoder; import org.jboss.netty.handler.codec.string.StringDecoder; import org.jboss.netty.handler.codec.string.StringEncoder; import org.traccar.BaseProtocol; -import org.traccar.CharacterDelimiterFrameDecoder; import org.traccar.TrackerServer; import java.util.List; diff --git a/src/org/traccar/web/CommandServlet.java b/src/org/traccar/web/CommandServlet.java index 2f1493193..ff8c85542 100644 --- a/src/org/traccar/web/CommandServlet.java +++ b/src/org/traccar/web/CommandServlet.java @@ -22,7 +22,6 @@ import javax.servlet.http.HttpServletResponse; import org.traccar.Context; import org.traccar.database.ActiveDevice; import org.traccar.model.Command; -import org.traccar.model.Device; public class CommandServlet extends BaseServlet { -- cgit v1.2.3