[Minor] add default branch to AddStrolchRootElementsService

This commit is contained in:
Robert von Burg 2023-04-06 14:37:43 +02:00
parent 3c4c40999b
commit c11e92691a
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ public class AddStrolchRootElementsService extends AbstractService<StrolchRootEl
case Tags.RESOURCE -> tx.add((Resource) rootElement);
case Tags.ORDER -> tx.add((Order) rootElement);
case Tags.ACTIVITY -> tx.add((Activity) rootElement);
default -> throw new IllegalStateException("Unexpected value: " + rootElement.getObjectType());
}
}
tx.commitOnClose();