Merge pull request #562 from thkoch2001/fix-warnings

Fix warnings
pull/568/head
Michael Christen 2 years ago committed by GitHub
commit f7b6e98ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -174,7 +174,6 @@
source="${javacSource}" target="${javacTarget}" encoding="UTF-8">
<classpath refid="project.class.path" />
<compilerarg value="-Xlint"/>
<compilerarg value="-nowarn"/>
</javac>
<!-- prepare classpath for MANIFEST (manifest cp is relative to jar) -->

@ -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 {

@ -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
}

Loading…
Cancel
Save