make getCollection method final and remove deprecated annotation
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 19 Jan 2021 17:56:16 +0000 (18:56 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 19 Jan 2021 17:56:16 +0000 (18:56 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/AbstractUnboundEntityCollectionSection.java

index 277fc11a643f56e13ef7b2bcc7b356cf207b90ca..8ef31ec6f092831d41b2e51ad47a6953a3deb7ac 100644 (file)
@@ -51,11 +51,11 @@ public abstract class AbstractUnboundEntityCollectionSection<ENTITY, ELEMENT> ex
     }
 
     /**
-     * @deprecated this method should not be extended in sub classes of {@link AbstractUnboundEntityCollectionSection}.<br>
+     * This method can not be extended in sub classes.
+     * Use {@link #getEntityCollection(Object)} instead.
      */
-    @Deprecated
     @Override
-    public Collection<ELEMENT> getCollection(ENTITY entity) {
+    public final Collection<ELEMENT> getCollection(ENTITY entity) {
         Collection<ELEMENT> elements = getEntityCollection(entity);
         if(addUnboundElement){
             //cloning to avoid saving the dummy element