Removed another final modifier

deploy_packages_to_gitea
Jens Pelzetter 2023-01-24 19:22:03 +01:00
parent 0d00794ffb
commit c3e90a27e1
2 changed files with 38 additions and 7 deletions

View File

@ -67,8 +67,24 @@ public abstract class AbstractAssetImExporter<T extends Asset>
assetRepo.save(asset); assetRepo.save(asset);
} }
/**
* Implementation of
* {@link AbstractEntityImExporter#updateExistingEntity(org.libreccm.imexport.Exportable, org.libreccm.imexport.Exportable)}
* for {@link Asset}s.
*
* !!!Warning: ImExporters for assets MUST never override this method.
* Instead, they MUST implement
* {@link #updateExistingAsset(org.librecms.contentsection.Asset, org.librecms.contentsection.Asset)}.
*
* Unfortunetly, CDI does not support final methods, therefore we can't make
* this method final.
*
*
* @param existingEntity The existing entity.
* @param importedEntity The imported entity.
*/
@Override @Override
protected final void updateExistingEntity( protected void updateExistingEntity(
final T existingEntity, final T importedEntity final T existingEntity, final T importedEntity
) { ) {
if (!Objects.equals( if (!Objects.equals(

View File

@ -100,6 +100,21 @@ public abstract class AbstractContentItemImExporter<T extends ContentItem>
itemRepository.save(entity); itemRepository.save(entity);
} }
/**
* Implementation of
* {@link AbstractEntityImExporter#updateExistingEntity(org.libreccm.imexport.Exportable, org.libreccm.imexport.Exportable)}
* for {@link ContentItem}s.
*
* !!!Warning: Implementations of this abstract class MUST NEVER override
* this method. Instead they MUST override
* {@link #updateExistingContentItem(org.librecms.contentsection.ContentItem, org.librecms.contentsection.ContentItem)}.
*
* Unfortunetly, CDI does not support final methods, therefore we can't make
* this method final.
*
* @param existingEntity
* @param importedEntity
*/
@Override @Override
protected void updateExistingEntity( protected void updateExistingEntity(
final T existingEntity, final T existingEntity,