From e81ee4d36b45f0ed42e62372222fb4f70820de3f Mon Sep 17 00:00:00 2001 From: "Artem.Arefev" Date: Tue, 11 Jun 2019 01:20:34 +0400 Subject: [PATCH] #93 codestyle --- src/main/java/ru/ulstu/activity/model/ActivityElement.java | 7 ++++--- src/main/java/ru/ulstu/grant/service/GrantService.java | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/ru/ulstu/activity/model/ActivityElement.java b/src/main/java/ru/ulstu/activity/model/ActivityElement.java index 4e4c716..17fecce 100644 --- a/src/main/java/ru/ulstu/activity/model/ActivityElement.java +++ b/src/main/java/ru/ulstu/activity/model/ActivityElement.java @@ -4,7 +4,8 @@ public class ActivityElement { private int startedCount = 0; private int completedCount = 0; - public ActivityElement() {} + public ActivityElement() { + } public ActivityElement(int startedCount, int completedCount) { this.startedCount = startedCount; @@ -28,10 +29,10 @@ public class ActivityElement { } public void incrementStartedCount() { - this.startedCount ++; + this.startedCount++; } public void incrementCompletedCount() { - this.completedCount ++; + this.completedCount++; } } diff --git a/src/main/java/ru/ulstu/grant/service/GrantService.java b/src/main/java/ru/ulstu/grant/service/GrantService.java index dbb2a44..1892629 100644 --- a/src/main/java/ru/ulstu/grant/service/GrantService.java +++ b/src/main/java/ru/ulstu/grant/service/GrantService.java @@ -165,7 +165,7 @@ public class GrantService extends BaseService { if (grant.getLeader() != oldLeader) { grantNotificationService.sendLeaderChangeNotification(grant, oldLeader); } - if(grant.getStatus() != oldStatus) { + if (grant.getStatus() != oldStatus) { activityService.createActivity(new ArrayList<>(grant.getAuthors()), grant.getCommonActivityState()); } eventService.updateGrantDeadlines(grant);