cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Sat, 26 Oct 2019 06:16:01 +0000 (08:16 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Sat, 26 Oct 2019 06:16:01 +0000 (08:16 +0200)
app-import/src/main/java/eu/etaxonomy/cdm/io/bogota/BogotaChecklistImportConfigurator.java
app-import/src/main/java/eu/etaxonomy/cdm/io/bogota/BogotaChecklistTaxonImport.java
app-import/src/main/java/eu/etaxonomy/cdm/io/mexico/SimpleExcelTaxonImport.java

index 13d92422031e599bd4f458106883394b70eafd61..1cff480afa0789db3e139ea2bc2320e7c92d517f 100644 (file)
@@ -36,25 +36,16 @@ public class BogotaChecklistImportConfigurator extends ExcelImportConfiguratorBa
         return new BogotaChecklistImportConfigurator(source, destination);
     }
 
-    /**
-     * @param uri
-     * @param destination
-     */
     private BogotaChecklistImportConfigurator(URI uri, ICdmDataSource destination) {
         super(uri, destination);
     }
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     public ImportStateBase getNewState() {
         return new SimpleExcelTaxonImportState<>(this);
     }
 
-    /**
-     * {@inheritDoc}
-     */
+    @SuppressWarnings("unchecked")
     @Override
     protected void makeIoClassList() {
         ioClassList = new Class[]{
@@ -62,17 +53,9 @@ public class BogotaChecklistImportConfigurator extends ExcelImportConfiguratorBa
         };
     }
 
-    /**
-     * @return the secReference
-     */
     public Reference getSecReference() {
         return secReference;
     }
-
-
-    /**
-     * @param secReference
-     */
     public void setSecReference(Reference secReference) {
         this.secReference = secReference;
     }
index 4b6464c1333da5fda2d6a79396993d0c8005eccc..789a503dc0d0e66169b0971fe83c1266e5b5c3be 100644 (file)
@@ -38,7 +38,6 @@ import eu.etaxonomy.cdm.strategy.parser.NonViralNameParserImpl;
 /**
  * @author a.mueller
  * @since 21.04.2017
- *
  */
 @Component
 public class BogotaChecklistTaxonImport<CONFIG extends BogotaChecklistImportConfigurator>
@@ -75,9 +74,6 @@ public class BogotaChecklistTaxonImport<CONFIG extends BogotaChecklistImportConf
     private boolean isFirst = true;
     private TransactionStatus tx = null;
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     protected void firstPass(SimpleExcelTaxonImportState<CONFIG> state) {
         if (isFirst){
index 6ecf00faf58a250500a67639df8e31d5b0ae959c..a502ba8545628e2739e9d1291c7fb1bfe792ddfd 100644 (file)
@@ -65,11 +65,6 @@ public abstract class SimpleExcelTaxonImport<CONFIG extends ExcelImportConfigura
 
 //***************************** METHODS *********************************/
 
-
-    /**
-     * @param state
-     * @return
-     */
     protected IdentifiableSource makeOriginalSource(SimpleExcelTaxonImportState<CONFIG> state) {
         return IdentifiableSource.NewDataImportInstance("line: " + state.getCurrentLine(), null, state.getConfig().getSourceReference());
     }
@@ -109,11 +104,6 @@ public abstract class SimpleExcelTaxonImport<CONFIG extends ExcelImportConfigura
         higherNode.addChildTaxon(taxon, null, null);
     }
 
-    /**
-     * @param line
-     * @param keys
-     * @param expectedKeys
-     */
     protected void checkAllKeysExist(String line, Set<String> keys, List<String> expectedKeys) {
         for (String key: keys) {
             if (! expectedKeys.contains(key)){
@@ -122,11 +112,6 @@ public abstract class SimpleExcelTaxonImport<CONFIG extends ExcelImportConfigura
         }
     }
 
-
-    /**
-     * @param state
-     * @param name
-     */
     protected void replaceAuthorNamesAndNomRef(SimpleExcelTaxonImportState<CONFIG> state,
             IBotanicalName name) {
         TeamOrPersonBase<?> combAuthor = name.getCombinationAuthorship();
@@ -153,10 +138,6 @@ public abstract class SimpleExcelTaxonImport<CONFIG extends ExcelImportConfigura
         }
     }
 
-     /**
-     * @param state
-     * @param nomRef
-     */
     private Reference getExistingReference(SimpleExcelTaxonImportState<CONFIG> state, Reference ref) {
         if (ref == null){
             return null;
@@ -177,9 +158,6 @@ public abstract class SimpleExcelTaxonImport<CONFIG extends ExcelImportConfigura
 
     boolean referenceMapIsInitialized;
 
-    /**
-     * @param state
-     */
     private void initRerenceMap(SimpleExcelTaxonImportState<CONFIG> state) {
         if (!referenceMapIsInitialized){
             List<String> propertyPaths = Arrays.asList("");
@@ -194,10 +172,6 @@ public abstract class SimpleExcelTaxonImport<CONFIG extends ExcelImportConfigura
 
     boolean agentMapIsInitialized = false;
 
-    /**
-     * @param state
-     *
-     */
     @SuppressWarnings("rawtypes")
     private void initAgentMap(SimpleExcelTaxonImportState<CONFIG> state) {
         if (!agentMapIsInitialized){
@@ -210,11 +184,6 @@ public abstract class SimpleExcelTaxonImport<CONFIG extends ExcelImportConfigura
         }
     }
 
-    /**
-     * @param state
-     * @param combAuthor
-     * @return
-     */
     protected TeamOrPersonBase<?> getExistingAuthor(SimpleExcelTaxonImportState<CONFIG> state,
             TeamOrPersonBase<?> author) {
         if (author == null){
@@ -233,11 +202,6 @@ public abstract class SimpleExcelTaxonImport<CONFIG extends ExcelImportConfigura
         }
     }
 
-
-    /**
-     * @param state
-     * @param author
-     */
     private void handleTeam(SimpleExcelTaxonImportState<CONFIG> state, Team team) {
         List<Person> members = team.getTeamMembers();
         for (int i =0; i< members.size(); i++){
@@ -250,8 +214,5 @@ public abstract class SimpleExcelTaxonImport<CONFIG extends ExcelImportConfigura
                 state.putAgentBase(person.getTitleCache(), person);
             }
         }
-
     }
-
-
 }