*/\r
public static void encodeMatchEntries(List<MatchEntries> matchEntries, ByteBuf out) {\r
if (matchEntries == null) {\r
- LOGGER.warn("Match entry is null");\r
+ LOGGER.warn("Match entries are null");\r
return;\r
}\r
for (MatchEntries entry : matchEntries) {\r
* @return length of MatchEntries\r
*/\r
public static int computeMatchEntriesLength(List<MatchEntries> matchEntries) {\r
+ final byte MATCH_ENTRY_HEADER_LENGTH = 4;\r
int length = 0;\r
if (matchEntries != null) {\r
for (MatchEntries entry : matchEntries) {\r
+ length += MATCH_ENTRY_HEADER_LENGTH;\r
Class<? extends MatchField> field = entry.getOxmMatchField();\r
if (field.equals(InPort.class)) {\r
length += Integer.SIZE / Byte.SIZE;\r