cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 22 Mar 2024 05:08:32 +0000 (06:08 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Fri, 22 Mar 2024 05:08:32 +0000 (06:08 +0100)
src/main/java/eu/etaxonomy/cdm/vaadin/model/registration/SpecimenTypeDesignationSetDTO.java

index ce4d45d296d99aca039dbec25477d29b1335706f..1b7ad0b5ef2f20a36451bd9e84aaa0f020932f1b 100644 (file)
@@ -29,31 +29,27 @@ import eu.etaxonomy.cdm.model.occurrence.GatheringEvent;
 /**
  * @author a.kohlbecker
  * @since Jun 16, 2017
- *
  */
 public class SpecimenTypeDesignationSetDTO<OWNER extends VersionableEntity> {
 
-    FieldUnit fieldUnit;
+    private FieldUnit fieldUnit;
 
-    VersionableEntity baseEntity;
+    private VersionableEntity baseEntity;
 
     /**
      * List of all SpecimenTypeDesignation that have been loaded into the
      * DTO. By comparing this list with <code>specimenTypeDesignations</code>
      * it is possible to find those that have been deleted.
      */
-    List<SpecimenTypeDesignation> specimenTypeDesignationsLoaded = new ArrayList<>();
+    private List<SpecimenTypeDesignation> specimenTypeDesignationsLoaded = new ArrayList<>();
 
-    List<SpecimenTypeDesignationDTO> specimenTypeDesignationsDTOs = new ArrayList<>();
+    private List<SpecimenTypeDesignationDTO> specimenTypeDesignationsDTOs = new ArrayList<>();
 
-    OWNER owner;
+    private OWNER owner;
 
     private TaxonName typifiedName;
 
     /**
-     *
-     * @param owner
-     * @param baseEntity
      * @param specimenTypeDesignations can be <code>null</code>
      */
     public SpecimenTypeDesignationSetDTO(OWNER owner, VersionableEntity baseEntity, List<SpecimenTypeDesignation> specimenTypeDesignations, TaxonName typifiedName) {
@@ -76,12 +72,6 @@ public class SpecimenTypeDesignationSetDTO<OWNER extends VersionableEntity> {
         }
     }
 
-    /**
-     * @param reg
-     * @param newfieldUnit
-     * @param citationEntityID
-     * @param typifiedNameEntityID
-     */
     public SpecimenTypeDesignationSetDTO(OWNER reg, FieldUnit newfieldUnit, TaxonName typifiedName) {
         this(reg, newfieldUnit, null, typifiedName);
     }
@@ -108,7 +98,7 @@ public class SpecimenTypeDesignationSetDTO<OWNER extends VersionableEntity> {
      * @return the typeDesignation entities managed in this workingset
      */
     protected List<SpecimenTypeDesignation> getSpecimenTypeDesignations() {
-        List<SpecimenTypeDesignation> specimenTypeDesignations = new ArrayList(specimenTypeDesignationsDTOs.size());
+        List<SpecimenTypeDesignation> specimenTypeDesignations = new ArrayList<>(specimenTypeDesignationsDTOs.size());
         for(SpecimenTypeDesignationDTO dto : specimenTypeDesignationsDTOs){
             specimenTypeDesignations.add(dto.asSpecimenTypeDesignation());
         }
@@ -122,8 +112,6 @@ public class SpecimenTypeDesignationSetDTO<OWNER extends VersionableEntity> {
     /**
      * The {@link VersionableEntity} which contains the DerivedUnit in this working set.
      * This can be for example a {@link Registration} entity
-     *
-     * @return
      */
     public OWNER getOwner() {
         return owner;
@@ -131,7 +119,6 @@ public class SpecimenTypeDesignationSetDTO<OWNER extends VersionableEntity> {
 
     // ====== FieldUnit Wrapper methods ====== //
 
-
     public String getFieldNumber() {
         return fieldUnit.getFieldNumber();
     }
@@ -343,5 +330,4 @@ public class SpecimenTypeDesignationSetDTO<OWNER extends VersionableEntity> {
             }
         }
     }
-
-}
+}
\ No newline at end of file