From 3dd6210f42a3062ac3e7d0b09fcb330dc257b151 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Sat, 25 Apr 2020 20:39:44 +0400 Subject: [PATCH] fix checkstyle --- src/main/java/ru/ulstu/grant/service/GrantService.java | 8 ++++---- src/main/java/ru/ulstu/grant/service/KiasService.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/ru/ulstu/grant/service/GrantService.java b/src/main/java/ru/ulstu/grant/service/GrantService.java index b09ef9e..48eeeb9 100644 --- a/src/main/java/ru/ulstu/grant/service/GrantService.java +++ b/src/main/java/ru/ulstu/grant/service/GrantService.java @@ -358,7 +358,7 @@ public class GrantService extends BaseService { @Transactional public Integer update(Grant newGrant) { Grant oldGrant = grantRepository.getOne(newGrant.getId()); - Grant.GrantStatus oldStatus = oldGrant.getStatus(); + //Grant.GrantStatus oldStatus = oldGrant.getStatus(); Set oldAuthors = new HashSet<>(oldGrant.getAuthors()); newGrant = grantRepository.save(newGrant); for (User author : newGrant.getAuthors()) { @@ -367,9 +367,9 @@ public class GrantService extends BaseService { } } - if (newGrant.getStatus() != oldStatus) { - //grantNotificationService.statusChangeNotification(newPaper, oldStatus); - } +// if (newGrant.getStatus() != oldStatus) { +// grantNotificationService.statusChangeNotification(newPaper, oldStatus); +// } return newGrant.getId(); } diff --git a/src/main/java/ru/ulstu/grant/service/KiasService.java b/src/main/java/ru/ulstu/grant/service/KiasService.java index e8627d3..c4f3ceb 100644 --- a/src/main/java/ru/ulstu/grant/service/KiasService.java +++ b/src/main/java/ru/ulstu/grant/service/KiasService.java @@ -32,7 +32,7 @@ public class KiasService { public List getNewGrantsDto() throws ParseException, IOException { Integer leaderId = userService.findOneByLoginIgnoreCase("admin").getId(); List grants = new ArrayList<>(); - try (final WebClient webClient = new WebClient()) { + try (WebClient webClient = new WebClient()) { webClient.setJavaScriptTimeout(60 * 1000); webClient.getOptions().setThrowExceptionOnScriptError(false); for (Integer year : generateGrantYears()) {