Remove @Override annotation from interface implements

This commit is contained in:
Norman Maurer 2012-05-18 22:16:17 +02:00
parent ce391d36f4
commit 2a05afd418
10 changed files with 4 additions and 21 deletions

View File

@ -56,7 +56,6 @@ public class CIDR4 extends CIDR {
}
}
@Override
public int compareTo(CIDR arg) {
if (arg instanceof CIDR6) {
byte[] address = getIpV4FromIpV6((Inet6Address) arg.baseAddress);

View File

@ -53,7 +53,6 @@ public class CIDR6 extends CIDR {
addressEndBigInt = addressBigInt.add(ipv6CidrMaskToBaseAddress(cidrMask)).subtract(BigInteger.ONE);
}
@Override
public InetAddress getEndAddress() {
try {
return bigIntToIPv6Address(addressEndBigInt);
@ -65,7 +64,7 @@ public class CIDR6 extends CIDR {
}
}
@Override
public int compareTo(CIDR arg) {
if (arg instanceof CIDR4) {
BigInteger net = ipv6AddressToBigInteger(arg.baseAddress);

View File

@ -95,7 +95,7 @@ public abstract class IpFilteringHandlerImpl implements ChannelUpstreamHandler,
}
}
@Override
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {
if (e instanceof ChannelStateEvent) {
ChannelStateEvent evt = (ChannelStateEvent) e;
@ -150,12 +150,12 @@ public abstract class IpFilteringHandlerImpl implements ChannelUpstreamHandler,
ctx.sendUpstream(e);
}
@Override
public void setIpFilterListener(IpFilterListener listener) {
this.listener = listener;
}
@Override
public void removeIpFilterListener() {
this.listener = null;

View File

@ -110,7 +110,6 @@ public class IpSubnet implements IpSet, Comparable<IpSubnet> {
* @return returns true if the given IP address is inside the currently
* set network.
*/
@Override
public boolean contains(InetAddress inetAddress) {
if (cidr == null) {
// ANY
@ -139,7 +138,6 @@ public class IpSubnet implements IpSet, Comparable<IpSubnet> {
}
/** Compare two IpSubnet */
@Override
public int compareTo(IpSubnet o) {
return cidr.toString().compareTo(o.cidr.toString());
}

View File

@ -55,12 +55,10 @@ public class IpSubnetFilterRule extends IpSubnet implements IpFilterRule {
isAllowRule = allow;
}
@Override
public boolean isAllowRule() {
return isAllowRule;
}
@Override
public boolean isDenyRule() {
return !isAllowRule;
}

View File

@ -209,7 +209,6 @@ public class IpV4Subnet implements IpSet, Comparable<IpV4Subnet> {
* @return returns true if the given IP address is inside the currently
* set network.
*/
@Override
public boolean contains(InetAddress inetAddress1) {
if (mask == -1) {
// ANY
@ -238,7 +237,6 @@ public class IpV4Subnet implements IpSet, Comparable<IpV4Subnet> {
}
/** Compare two IpV4Subnet */
@Override
public int compareTo(IpV4Subnet o) {
if (o.subnet == subnet && o.cidrMask == cidrMask) {
return 0;

View File

@ -50,12 +50,10 @@ public class IpV4SubnetFilterRule extends IpV4Subnet implements IpFilterRule {
isAllowRule = allow;
}
@Override
public boolean isAllowRule() {
return isAllowRule;
}
@Override
public boolean isDenyRule() {
return !isAllowRule;
}

View File

@ -81,17 +81,14 @@ public class PatternRule implements IpFilterRule, Comparable<Object> {
return this.pattern;
}
@Override
public boolean isAllowRule() {
return isAllowRule;
}
@Override
public boolean isDenyRule() {
return !isAllowRule;
}
@Override
public boolean contains(InetAddress inetAddress) {
if (localhost) {
if (isLocalhost(inetAddress)) {
@ -178,7 +175,6 @@ public class PatternRule implements IpFilterRule, Comparable<Object> {
}
@Override
public int compareTo(Object o) {
if (o == null) {
return -1;

View File

@ -325,7 +325,6 @@ public abstract class AbstractTrafficShapingHandler extends
/**
* Truly run the waken up of the channel
*/
@Override
public void run() {
try {
if (release.get()) {
@ -481,7 +480,6 @@ public abstract class AbstractTrafficShapingHandler extends
return trafficCounter;
}
@Override
public void releaseExternalResources() {
if (trafficCounter != null) {
trafficCounter.stop();

View File

@ -142,7 +142,6 @@ public class TrafficCounter {
/**
* Default run
*/
@Override
public void run() {
try {
Thread.currentThread().setName(counter.name);