From 572db06a7bbe15bbf98cd695d06b701ff8652b77 Mon Sep 17 00:00:00 2001 From: Gábor Somogyi Date: Mon, 2 May 2016 21:35:50 +0200 Subject: Minor java type refactor --- src/org/traccar/ServerManager.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index 4f8e66130..1fc145869 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -71,14 +71,14 @@ public class ServerManager { } public void start() { - for (Object server: serverList) { - ((TrackerServer) server).start(); + for (TrackerServer server: serverList) { + server.start(); } } public void stop() { - for (Object server: serverList) { - ((TrackerServer) server).stop(); + for (TrackerServer server: serverList) { + server.stop(); } // Release resources @@ -108,4 +108,5 @@ public class ServerManager { return result; } + } -- cgit v1.2.3