warning stuff

This commit is contained in:
unknown 2014-02-15 16:56:45 +01:00
parent 0dc200f983
commit 873a4046b8
29 changed files with 21 additions and 166 deletions

View file

@ -1,15 +1,12 @@
package btools.server;
import java.io.File;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.List;
import java.util.TreeSet;
import btools.router.OsmNodeNamed;
import btools.router.RoutingEngine;
import btools.router.RoutingContext;
import btools.router.OsmTrack;
import btools.router.RoutingEngine;
public class BRouter
{
@ -70,7 +67,6 @@ public class BRouter
maxRunningTime = Integer.parseInt( sMaxRunningTime ) * 1000;
}
long startTime = System.currentTimeMillis();
List<OsmNodeNamed> wplist = new ArrayList<OsmNodeNamed>();
wplist.add( from );
wplist.add( to );

View file

@ -27,12 +27,10 @@ public class RouteServer extends Thread
public ServiceContext serviceContext;
public short port = 17777;
private boolean serverStopped = false;
private ServerSocket serverSocket = null;
public void close()
{
serverStopped = true;
try
{
ServerSocket ss = serverSocket;
@ -123,7 +121,6 @@ public class RouteServer extends Thread
HashMap<String,String> params = getUrlParams(url);
long maxRunningTime = getMaxRunningTime();
long startTime = System.currentTimeMillis();
RequestHandler handler;
if ( params.containsKey( "lonlats" ) && params.containsKey( "profile" ) )
@ -230,7 +227,7 @@ public class RouteServer extends Thread
value = value.trim();
profileMap.put( key, value );
}
pr.close();
return profileMap;
}