убрал исключение для нечетного количества сделок в 2 шаге сессий

This commit is contained in:
ialbert 2023-08-01 16:54:55 +03:00
parent b6e19b9f8d
commit 6ea0cf3e38

View file

@ -55,9 +55,6 @@ public class RequirementsAndObligationCreation implements ISessionStage {
}
private StageResult<?> createRegisters(List<ExecutionCommon> data) {
if (data.size() % 2 != 0) {
throw new IllegalStateException("Data size must be even (executions must match)");
}
//см. описание к #matchExecutions
for (int i = 0; i < data.size(); ) {
Pair<ExecutionCommon, ExecutionCommon> matched = matchExecutions(data, i);