67: Reformat code

This commit is contained in:
Tom Zhao 2025-01-27 15:06:21 +01:00
parent b8afa202ba
commit ce6b5aabdb

@ -207,16 +207,22 @@ public abstract class AbstractAdminIdeaPanel extends Panel {
} else {
ideaService.changeSupervisor(idea, newSelection, SciProSession.get().getUser());
Target currentTarget = targetService.findOne(idea.getApplicationPeriod(), newSelection,
idea.getProjectType());
Long countMatched = ideaService.countMatched(idea.getApplicationPeriod(), newSelection,
idea.getProjectType());
Target currentTarget = targetService.findOne(
idea.getApplicationPeriod(),
newSelection,
idea.getProjectType()
);
Long countMatched = ideaService.countMatched(
idea.getApplicationPeriod(),
newSelection,
idea.getProjectType()
);
int targetCounter = (currentTarget == null) ? 0 : currentTarget.getTarget();
long matchedCounter = (countMatched == null) ? 0L : countMatched;
String msg = "Supervisor changed: matched/target -> " + matchedCounter + " / " +
targetCounter;
String msg =
"Supervisor changed: matched/target -> " + matchedCounter + " / " + targetCounter;
if (matchedCounter > targetCounter) {
warn(msg);