1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-02 09:07:08 +02:00

More cleanup

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1570 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-06-02 13:59:02 +00:00
parent 4d3e7147aa
commit 0f83fb9dce
8 changed files with 22 additions and 19 deletions

View File

@@ -27,7 +27,7 @@ public class UserManager implements IConf
return users.getBoolean(username.toLowerCase() + "." + SPY, false);
}
public void setSpy(final String username, boolean spy) throws Exception
public void setSpy(final String username, final boolean spy)
{
setUser(username.toLowerCase(), getAddress(username), spy);
}
@@ -37,7 +37,7 @@ public class UserManager implements IConf
return users.getString(username.toLowerCase() + "." + ADDRESS, null);
}
public void setAddress(final String username, final String address) throws Exception
public void setAddress(final String username, final String address)
{
setUser(username.toLowerCase(), address, isSpy(username));
}
@@ -47,7 +47,7 @@ public class UserManager implements IConf
return spyusers;
}
private void setUser(String username, String address, boolean spy) throws Exception
private void setUser(final String username, final String address, final boolean spy)
{
final Map<String, Object> userdata = new HashMap<String, Object>();
userdata.put(ADDRESS, address);