fix checkstyle

This commit is contained in:
Anton Romanov 2020-04-25 20:39:44 +04:00
parent 5520f19357
commit 3dd6210f42
2 changed files with 5 additions and 5 deletions

View File

@ -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<User> 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) {
// if (newGrant.getStatus() != oldStatus) {
// grantNotificationService.statusChangeNotification(newPaper, oldStatus);
}
// }
return newGrant.getId();
}

View File

@ -32,7 +32,7 @@ public class KiasService {
public List<GrantDto> getNewGrantsDto() throws ParseException, IOException {
Integer leaderId = userService.findOneByLoginIgnoreCase("admin").getId();
List<GrantDto> 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()) {