Code: Select all
public void removeFloodProtection(String ip){ if(!Config.FLOOD_PROTECTION) return; ForeignConnection fConnection = _floodProtection.get(ip); if(fConnection != null) { fConnection.connectionNumber -= 1; if (fConnection.connectionNumber == 0) { _floodProtection.remove(ip); } } else { _log.warning("Removing a flood protection for a GameServer that was not in the connection map??? :"+ip); }}
I would recommend you to use some existing code guidelines or write your own but please. Avoid to commit code like the code I have posted as example. I know that reformating is slow process but sometimes clean up is done so ... try to look on the style too please.
All the best.
---
Maybe you find it usefull. I know that this is for C# but the code formatting works for Java too.
http://telemetron.googlecode.com/files/ ... elines.pdf