Skip to content

Commit 0ce9d2c

Browse files
Merge branch 'stable' into next
2 parents ef2f54e + 5b4f287 commit 0ce9d2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opencast-backend/annotation-impl/src/main/java/org/opencast/annotation/impl/persistence/ExtendedAnnotationServiceJpaImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ public List<Category> none() {
757757
List<Category> seriesCategories = categoryDtos.stream()
758758
.map(CategoryDto::toCategory)
759759
.filter(category -> Option.some(category.getId()).equals(category.getSeriesCategoryId()))
760-
.collect(Collectors.toList());
760+
.toList();
761761

762762
// Link a category to a master series category if they are "sufficiently" equal
763763
for (Category videoCategory : allCategories) {
@@ -839,7 +839,7 @@ public Category deleteCategory(Category category) throws ExtendedAnnotationExcep
839839
List<CategoryDto> categoryDtos = findAllWithOffsetAndLimit(CategoryDto.class, "Category.findAllOfSeriesCategory", none(), none(), id(category.getSeriesCategoryId().get()));
840840
List<Category> withSeriesCategoryId = categoryDtos.stream()
841841
.map(CategoryDto::toCategory)
842-
.collect(Collectors.toList());
842+
.toList();
843843
for (Category categoryBelongingToMaster: withSeriesCategoryId) {
844844
result = deleteCategoryImpl(categoryBelongingToMaster);
845845
}

0 commit comments

Comments
 (0)