Brian O'Connor

Fixing compile error in bgpio bundle

Change-Id: I8d9e5db15dc04fa25015dc74d81c6ec922890b8c
......@@ -39,20 +39,10 @@ public interface BGPKeepaliveMsg extends BGPMessage {
* Builder interface with get and set functions to build Keepalive message.
*/
interface Builder extends BGPMessage.Builder {
@Override
BGPKeepaliveMsg build();
@Override
BGPVersion getVersion();
@Override
BGPType getType();
@Override
Builder setHeader(BGPHeader bgpMsgHeader);
@Override
BGPHeader getHeader();
}
}
......
......@@ -71,15 +71,6 @@ public interface BGPOpenMsg extends BGPMessage {
@Override
BGPOpenMsg build() throws BGPParseException;
@Override
BGPHeader getHeader();
@Override
BGPVersion getVersion();
@Override
BGPType getType();
/**
* Returns hold time of Open Message.
*
......
......@@ -98,21 +98,6 @@ class BGPKeepaliveMsgVer4 implements BGPKeepaliveMsg {
BGPHeader bgpMsgHeader;
@Override
public BGPVersion getVersion() {
return BGPVersion.BGP_4;
}
@Override
public BGPType getType() {
return BGPType.KEEP_ALIVE;
}
@Override
public BGPHeader getHeader() {
return this.bgpMsgHeader;
}
@Override
public Builder setHeader(BGPHeader bgpMsgHeader) {
this.bgpMsgHeader = bgpMsgHeader;
return this;
......
......@@ -123,16 +123,6 @@ class BGPNotificationMsgVer4 implements BGPNotificationMsg {
private boolean isBGPHeaderSet = false;
@Override
public BGPVersion getVersion() {
return BGPVersion.BGP_4;
}
@Override
public BGPType getType() {
return BGPType.NOTIFICATION;
}
@Override
public BGPNotificationMsg build() throws BGPParseException {
BGPHeader bgpHeader = this.isBGPHeaderSet ? this.bgpHeader : DEFAULT_MESSAGE_HEADER;
if (!this.isErrorCodeSet) {
......@@ -171,11 +161,6 @@ class BGPNotificationMsgVer4 implements BGPNotificationMsg {
}
@Override
public BGPHeader getHeader() {
return this.bgpHeader;
}
@Override
public Builder setHeader(BGPHeader bgpMsgHeader) {
this.bgpHeader = bgpMsgHeader;
return this;
......
......@@ -327,27 +327,12 @@ public class BGPOpenMsgVer4 implements BGPOpenMsg {
}
@Override
public BGPHeader getHeader() {
return this.bgpMsgHeader;
}
@Override
public Builder setHeader(BGPHeader bgpMsgHeader) {
this.bgpMsgHeader = bgpMsgHeader;
return this;
}
@Override
public BGPVersion getVersion() {
return BGPVersion.BGP_4;
}
@Override
public BGPType getType() {
return MSG_TYPE;
}
@Override
public short getHoldTime() {
return this.holdTime;
}
......