final byte LENGTH_OF_ETHERTYPE_ACTION = 8;\r
final byte ETHERTYPE_ACTION_PADDING = 2; \r
EthertypeAction ethertype = action.getAugmentation(EthertypeAction.class);\r
- \r
- if (null != ethertype && null != ethertype.getEthertype()) {\r
- outBuffer.writeShort(LENGTH_OF_ETHERTYPE_ACTION);\r
- \r
- outBuffer.writeShort(ethertype.getEthertype().getValue());\r
- ByteBufUtils.padBuffer(ETHERTYPE_ACTION_PADDING, outBuffer);\r
- }\r
+ outBuffer.writeShort(LENGTH_OF_ETHERTYPE_ACTION);\r
+ outBuffer.writeShort(ethertype.getEthertype().getValue());\r
+ ByteBufUtils.padBuffer(ETHERTYPE_ACTION_PADDING, outBuffer);\r
}\r
\r
/**\r