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) { public int compareTo(CIDR arg) {
if (arg instanceof CIDR6) { if (arg instanceof CIDR6) {
byte[] address = getIpV4FromIpV6((Inet6Address) arg.baseAddress); 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); addressEndBigInt = addressBigInt.add(ipv6CidrMaskToBaseAddress(cidrMask)).subtract(BigInteger.ONE);
} }
@Override
public InetAddress getEndAddress() { public InetAddress getEndAddress() {
try { try {
return bigIntToIPv6Address(addressEndBigInt); return bigIntToIPv6Address(addressEndBigInt);
@ -65,7 +64,7 @@ public class CIDR6 extends CIDR {
} }
} }
@Override
public int compareTo(CIDR arg) { public int compareTo(CIDR arg) {
if (arg instanceof CIDR4) { if (arg instanceof CIDR4) {
BigInteger net = ipv6AddressToBigInteger(arg.baseAddress); 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 { public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {
if (e instanceof ChannelStateEvent) { if (e instanceof ChannelStateEvent) {
ChannelStateEvent evt = (ChannelStateEvent) e; ChannelStateEvent evt = (ChannelStateEvent) e;
@ -150,12 +150,12 @@ public abstract class IpFilteringHandlerImpl implements ChannelUpstreamHandler,
ctx.sendUpstream(e); ctx.sendUpstream(e);
} }
@Override
public void setIpFilterListener(IpFilterListener listener) { public void setIpFilterListener(IpFilterListener listener) {
this.listener = listener; this.listener = listener;
} }
@Override
public void removeIpFilterListener() { public void removeIpFilterListener() {
this.listener = null; 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 * @return returns true if the given IP address is inside the currently
* set network. * set network.
*/ */
@Override
public boolean contains(InetAddress inetAddress) { public boolean contains(InetAddress inetAddress) {
if (cidr == null) { if (cidr == null) {
// ANY // ANY
@ -139,7 +138,6 @@ public class IpSubnet implements IpSet, Comparable<IpSubnet> {
} }
/** Compare two IpSubnet */ /** Compare two IpSubnet */
@Override
public int compareTo(IpSubnet o) { public int compareTo(IpSubnet o) {
return cidr.toString().compareTo(o.cidr.toString()); return cidr.toString().compareTo(o.cidr.toString());
} }

View File

@ -55,12 +55,10 @@ public class IpSubnetFilterRule extends IpSubnet implements IpFilterRule {
isAllowRule = allow; isAllowRule = allow;
} }
@Override
public boolean isAllowRule() { public boolean isAllowRule() {
return isAllowRule; return isAllowRule;
} }
@Override
public boolean isDenyRule() { public boolean isDenyRule() {
return !isAllowRule; 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 * @return returns true if the given IP address is inside the currently
* set network. * set network.
*/ */
@Override
public boolean contains(InetAddress inetAddress1) { public boolean contains(InetAddress inetAddress1) {
if (mask == -1) { if (mask == -1) {
// ANY // ANY
@ -238,7 +237,6 @@ public class IpV4Subnet implements IpSet, Comparable<IpV4Subnet> {
} }
/** Compare two IpV4Subnet */ /** Compare two IpV4Subnet */
@Override
public int compareTo(IpV4Subnet o) { public int compareTo(IpV4Subnet o) {
if (o.subnet == subnet && o.cidrMask == cidrMask) { if (o.subnet == subnet && o.cidrMask == cidrMask) {
return 0; return 0;

View File

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

View File

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

View File

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

View File

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