1
0
Fork 0

removed not used code

This commit is contained in:
Miriam Baglioni 2020-10-02 12:33:52 +02:00
parent 12407c1f32
commit fc2f7636be
1 changed files with 0 additions and 12 deletions

View File

@ -96,24 +96,12 @@ public class PrepareProjects {
String[] programme = csvProject.get().getProgramme().split(";"); String[] programme = csvProject.get().getProgramme().split(";");
String topic = csvProject.get().getTopics(); String topic = csvProject.get().getTopics();
// String topicdescription = Optional
// .ofNullable(csvProject.get().getTopics())
// .map(topics -> {
// if (topic.equalsIgnoreCase(value._1().getTopiccode())) {
// return value._1().getTopicdescription();
// }
// return null;
// })
// .orElse(null);
Arrays Arrays
.stream(programme) .stream(programme)
.forEach(p -> { .forEach(p -> {
CSVProject proj = new CSVProject(); CSVProject proj = new CSVProject();
proj.setTopics(topic); proj.setTopics(topic);
// if (topicdescription != null) {
// proj.setTopicdescription(topicdescription);
// }
proj.setProgramme(p); proj.setProgramme(p);
proj.setId(csvProject.get().getId()); proj.setId(csvProject.get().getId());