Fix formatting
This commit is contained in:
parent
6dce4098d7
commit
e9f97d6662
@ -71,7 +71,7 @@ public class CIDR4 extends CIDR
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(CIDR arg)
|
||||
public int compareTo(CIDR arg)
|
||||
{
|
||||
if (arg instanceof CIDR6)
|
||||
{
|
||||
|
@ -78,7 +78,7 @@ public class CIDR6 extends CIDR
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(CIDR arg)
|
||||
public int compareTo(CIDR arg)
|
||||
{
|
||||
if (arg instanceof CIDR4)
|
||||
{
|
||||
|
@ -113,7 +113,7 @@ public abstract class IpFilteringHandlerImpl implements ChannelUpstreamHandler,
|
||||
* @see org.jboss.netty.channel.ChannelUpstreamHandler#handleUpstream(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelEvent)
|
||||
*/
|
||||
@Override
|
||||
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception
|
||||
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception
|
||||
{
|
||||
if (e instanceof ChannelStateEvent)
|
||||
{
|
||||
@ -189,7 +189,7 @@ public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exc
|
||||
* @see org.jboss.netty.handler.ipfilter.IpFilteringHandler#setIpFilterListener(org.jboss.netty.handler.ipfilter.IpFilterListener)
|
||||
*/
|
||||
@Override
|
||||
public void setIpFilterListener(IpFilterListener listener)
|
||||
public void setIpFilterListener(IpFilterListener listener)
|
||||
{
|
||||
this.listener = listener;
|
||||
}
|
||||
@ -198,7 +198,7 @@ public void setIpFilterListener(IpFilterListener listener)
|
||||
* @see org.jboss.netty.handler.ipfilter.IpFilteringHandler#removeIpFilterListener()
|
||||
*/
|
||||
@Override
|
||||
public void removeIpFilterListener()
|
||||
public void removeIpFilterListener()
|
||||
{
|
||||
this.listener = null;
|
||||
|
||||
|
@ -159,7 +159,7 @@ public boolean contains(InetAddress inetAddress)
|
||||
* Compare two IpSubnet
|
||||
*/
|
||||
@Override
|
||||
public int compareTo(IpSubnet o)
|
||||
public int compareTo(IpSubnet o)
|
||||
{
|
||||
return cidr.toString().compareTo(o.cidr.toString());
|
||||
}
|
||||
|
@ -79,13 +79,13 @@ public class IpSubnetFilterRule extends IpSubnet implements IpFilterRule
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAllowRule()
|
||||
public boolean isAllowRule()
|
||||
{
|
||||
return isAllowRule;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDenyRule()
|
||||
public boolean isDenyRule()
|
||||
{
|
||||
return !isAllowRule;
|
||||
}
|
||||
|
@ -278,7 +278,7 @@ public boolean contains(InetAddress inetAddress1)
|
||||
* Compare two IpV4Subnet
|
||||
*/
|
||||
@Override
|
||||
public int compareTo(IpV4Subnet o)
|
||||
public int compareTo(IpV4Subnet o)
|
||||
{
|
||||
if (o.subnet == subnet && o.cidrMask == cidrMask)
|
||||
{
|
||||
|
@ -74,13 +74,13 @@ public class IpV4SubnetFilterRule extends IpV4Subnet implements IpFilterRule
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAllowRule()
|
||||
public boolean isAllowRule()
|
||||
{
|
||||
return isAllowRule;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDenyRule()
|
||||
public boolean isDenyRule()
|
||||
{
|
||||
return !isAllowRule;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user