Code style changes.

This commit is contained in:
MobiusDev
2016-04-26 19:21:19 +00:00
parent 6a13705766
commit fc070c9238
768 changed files with 3338 additions and 4252 deletions

View File

@@ -175,13 +175,13 @@ public class LoginController
synchronized (_failedLoginAttemps)
{
failedLoginAttemps = _failedLoginAttemps.get(addr);
if (failedLoginAttemps == null)
if (failedLoginAttemps != null)
{
failedLoginAttemps = 1;
++failedLoginAttemps;
}
else
{
++failedLoginAttemps;
failedLoginAttemps = 1;
}
_failedLoginAttemps.put(addr, failedLoginAttemps);
@@ -370,7 +370,7 @@ public class LoginController
{
try
{
return this.removeBanForAddress(InetAddress.getByName(address));
return removeBanForAddress(InetAddress.getByName(address));
}
catch (UnknownHostException e)
{