From 961a6a318e29917922bfa539d792ecdda3e9cc9b Mon Sep 17 00:00:00 2001 From: "a.vasin" Date: Sat, 1 Jun 2019 11:51:01 +0400 Subject: [PATCH] #101 event service edited --- src/main/java/ru/ulstu/timeline/service/EventService.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/ru/ulstu/timeline/service/EventService.java b/src/main/java/ru/ulstu/timeline/service/EventService.java index 01113c7..d307a8d 100644 --- a/src/main/java/ru/ulstu/timeline/service/EventService.java +++ b/src/main/java/ru/ulstu/timeline/service/EventService.java @@ -123,7 +123,6 @@ public class EventService { List timelines = timelineService.findAll(); Timeline timeline = timelines.isEmpty() ? new Timeline() : timelines.get(0); objectClassName = newObject.getClass().getName(); - switch(objectClassName) { case "ru.ulstu.paper.model.Paper": newPaper = (Paper)newObject; @@ -240,7 +239,6 @@ public class EventService { break; } } - public void updatePaperDeadlines(Paper paper) { List foundEvents = eventRepository.findAllByPaper(paper); eventRepository.delete(foundEvents);