@Test void shouldConvertEmptyReport() { Report report = new Report(); FileLocations empty = new ReportLocations().toFileLocations(report); assertThat(empty.getFiles()).isEmpty(); }
public FileLocations toFileLocations(final Report report) { FileLocations fileLocations = new FileLocations(); report.stream().forEach(i -> fileLocations.addLine(i.getFileName(), i.getLineStart())); return fileLocations; }
ReportLocations { public FileLocations toFileLocations(final Report report) { FileLocations fileLocations = new FileLocations(); report.stream().forEach(i -> fileLocations.addLine(i.getFileName(), i.getLineStart())); return fileLocations; } }
ReportLocations { public FileLocations toFileLocations(final Report report) { FileLocations fileLocations = new FileLocations(); report.stream().forEach(i -> fileLocations.addLine(i.getFileName(), i.getLineStart())); return fileLocations; }  }
ReportLocations { public FileLocations toFileLocations(final Report report) { FileLocations fileLocations = new FileLocations(); report.stream().forEach(i -> fileLocations.addLine(i.getFileName(), i.getLineStart())); return fileLocations; }  FileLocations toFileLocations(final Report report); @Deprecated FileLocations toFileLocations(final Report report, @SuppressWarnings("unused") final String workspace); }
ReportLocations { public FileLocations toFileLocations(final Report report) { FileLocations fileLocations = new FileLocations(); report.stream().forEach(i -> fileLocations.addLine(i.getFileName(), i.getLineStart())); return fileLocations; }  FileLocations toFileLocations(final Report report); @Deprecated FileLocations toFileLocations(final Report report, @SuppressWarnings("unused") final String workspace);  }