Enable PMD rule LooseCoupling and fix violations

This commit is contained in:
Manuel Fuhr 2022-11-13 12:38:30 +01:00
parent c75a8cb703
commit 30be64cbbe
26 changed files with 64 additions and 50 deletions

View file

@ -146,7 +146,7 @@ public class RouteServer extends Thread implements Comparable<RouteServer> {
}
String url = getline.split(" ")[1];
HashMap<String, String> params = getUrlParams(url);
Map<String, String> params = getUrlParams(url);
long maxRunningTime = getMaxRunningTime();
@ -359,7 +359,7 @@ public class RouteServer extends Thread implements Comparable<RouteServer> {
}
private static HashMap<String, String> getUrlParams(String url) throws UnsupportedEncodingException {
private static Map<String, String> getUrlParams(String url) throws UnsupportedEncodingException {
HashMap<String, String> params = new HashMap<String, String>();
String decoded = URLDecoder.decode(url, "UTF-8");
StringTokenizer tk = new StringTokenizer(decoded, "?&");