diff --git a/build.xml b/build.xml index 631abd71f..52b1e3572 100644 --- a/build.xml +++ b/build.xml @@ -174,7 +174,6 @@ source="${javacSource}" target="${javacTarget}" encoding="UTF-8"> - diff --git a/source/net/yacy/htroot/ConfigAccounts_p.java b/source/net/yacy/htroot/ConfigAccounts_p.java index 053ed4c68..293944620 100644 --- a/source/net/yacy/htroot/ConfigAccounts_p.java +++ b/source/net/yacy/htroot/ConfigAccounts_p.java @@ -82,7 +82,7 @@ public class ConfigAccounts_p { env.setConfig(SwitchboardConstants.ADMIN_ACCOUNT_B64MD5, sb.encodeDigestAuth(user, pw1)); env.setConfig(SwitchboardConstants.ADMIN_ACCOUNT_USER_NAME,user); // make sure server accepts new credentials - final YaCyHttpServer jhttpserver = (YaCyHttpServer)sb.getHttpServer(); + final YaCyHttpServer jhttpserver = sb.getHttpServer(); if (!user.equals(oldusername)) jhttpserver.removeUser(oldusername); jhttpserver.resetUser(user); } else { diff --git a/source/net/yacy/htroot/ConfigUser_p.java b/source/net/yacy/htroot/ConfigUser_p.java index b567b5c6b..9a5360662 100644 --- a/source/net/yacy/htroot/ConfigUser_p.java +++ b/source/net/yacy/htroot/ConfigUser_p.java @@ -153,7 +153,7 @@ public class ConfigUser_p { } catch (final Exception e) { ConcurrentLog.logException(e); } - final YaCyHttpServer jhttpserver = (YaCyHttpServer) sb.getHttpServer(); + final YaCyHttpServer jhttpserver = sb.getHttpServer(); jhttpserver.resetUser(entry.getUserName()); } else { prop.put("error", "1"); @@ -164,7 +164,7 @@ public class ConfigUser_p { prop.putHTML("username", username); } else if (post.containsKey("delete")) { sb.userDB.removeEntry(post.get("username")); - final YaCyHttpServer jhttpserver = (YaCyHttpServer) sb.getHttpServer(); + final YaCyHttpServer jhttpserver = sb.getHttpServer(); jhttpserver.removeUser(post.get("username")); prop.put(serverObjects.ACTION_LOCATION, "ConfigAccountList_p.html"); // jump back to user list }