private FlowspecIpv6NlriParserHelper() {}
- public static final void extractFlowspec(final ChoiceNode fsType, final FlowspecBuilder fsBuilder) {
+ public static void extractFlowspec(final ChoiceNode fsType, final FlowspecBuilder fsBuilder) {
if (fsType.getChild(AbstractFlowspecNlriParser.DEST_PREFIX_NID).isPresent()) {
fsBuilder.setFlowspecType(
new DestinationIpv6PrefixCaseBuilder()
}
}
- public static final void buildFlowspecString(final FlowspecType value, final StringBuilder buffer) {
+ public static void buildFlowspecString(final FlowspecType value, final StringBuilder buffer) {
if (value instanceof DestinationIpv6PrefixCase) {
buffer.append("to ");
buffer.append(((DestinationIpv6PrefixCase) value).getDestinationPrefix().getValue());
}
}
- private static final List<NextHeaders> createNextHeaders(final UnkeyedListNode nextHeadersData) {
+ private static List<NextHeaders> createNextHeaders(final UnkeyedListNode nextHeadersData) {
final List<NextHeaders> nextHeaders = new ArrayList<>();
for (final UnkeyedListEntryNode node : nextHeadersData.getValue()) {
return nextHeaders;
}
- private static final List<FlowLabel> createFlowLabels(final UnkeyedListNode flowLabelsData) {
+ private static List<FlowLabel> createFlowLabels(final UnkeyedListNode flowLabelsData) {
final List<FlowLabel> flowLabels = new ArrayList<>();
for (final UnkeyedListEntryNode node : flowLabelsData.getValue()) {
return flowLabels;
}
- private static final String stringFlowLabel(final List<FlowLabel> list) {
+ private static String stringFlowLabel(final List<FlowLabel> list) {
final StringBuilder buffer = new StringBuilder();
boolean isFirst = true;
for (final FlowLabel item : list) {