@Test void testLineWithCommentAndSpaceIsNotChanged() { CobolLine commentLine = new CobolLine(); commentLine.setSequenceArea(BLANK_SEQUENCE_AREA); commentLine.setIndicatorArea(WS); commentLine.setContentAreaA(EMPTY_CONTENT_AREA_A); commentLine.setContentAreaB(" AUTHOR.*> USER."); CobolInlineCommentEntriesNormalizerImpl normalizer = new CobolInlineCommentEntriesNormalizerImpl(); List<CobolLine> actual = normalizer.processLines(singletonList(commentLine)); assertFalse(actual.isEmpty()); assertEquals(commentLine, actual.get(0)); }
@Override @Nonnull public List<CobolLine> processLines(@Nonnull List<CobolLine> lines) { return lines.stream().map(this::normalizeLine).collect(toList()); }
CobolInlineCommentEntriesNormalizerImpl implements CobolLineReWriter { @Override @Nonnull public List<CobolLine> processLines(@Nonnull List<CobolLine> lines) { return lines.stream().map(this::normalizeLine).collect(toList()); } }
CobolInlineCommentEntriesNormalizerImpl implements CobolLineReWriter { @Override @Nonnull public List<CobolLine> processLines(@Nonnull List<CobolLine> lines) { return lines.stream().map(this::normalizeLine).collect(toList()); }  }
CobolInlineCommentEntriesNormalizerImpl implements CobolLineReWriter { @Override @Nonnull public List<CobolLine> processLines(@Nonnull List<CobolLine> lines) { return lines.stream().map(this::normalizeLine).collect(toList()); }  @Override @Nonnull List<CobolLine> processLines(@Nonnull List<CobolLine> lines); }
CobolInlineCommentEntriesNormalizerImpl implements CobolLineReWriter { @Override @Nonnull public List<CobolLine> processLines(@Nonnull List<CobolLine> lines) { return lines.stream().map(this::normalizeLine).collect(toList()); }  @Override @Nonnull List<CobolLine> processLines(@Nonnull List<CobolLine> lines);  }