diff --git a/ccm-core/src/main/java/org/libreccm/imexport/AbstractEntityImExporter.java b/ccm-core/src/main/java/org/libreccm/imexport/AbstractEntityImExporter.java index e0f3147d6..8624ff992 100644 --- a/ccm-core/src/main/java/org/libreccm/imexport/AbstractEntityImExporter.java +++ b/ccm-core/src/main/java/org/libreccm/imexport/AbstractEntityImExporter.java @@ -94,12 +94,14 @@ public abstract class AbstractEntityImExporter { * annotations in a portable way in the rest of the code because CDI * containers usually create a {@link java.lang.reflect.Proxy} class and * there is no portable way to unproxy a class. + * + * This method is not intended to be overriden, but CDI beans can't have final methods. * * @return A {@link Set} of exportable entity classes which should be * processed before the entities which are processed by this * implementation. */ - public final Set> getRequiredEntities() { + public Set> getRequiredEntities() { return Collections.unmodifiableSet(requiredEntities); } @@ -107,10 +109,12 @@ public abstract class AbstractEntityImExporter { * Add entities that have be processed before this implementation is used. * This method should only be called by the implementation of the * {@link #init()} method. + * + * This method is not intended to be overriden, but CDI beans can't have final methods. * * @param requiredEntities The additional required entities. */ - public final void addRequiredEntities( + public void addRequiredEntities( final Set> requiredEntities ) { this.requiredEntities.addAll(requiredEntities);