cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Wed, 10 Mar 2021 09:58:09 +0000 (10:58 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Wed, 10 Mar 2021 09:58:09 +0000 (10:58 +0100)
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/RemotingChangeAcceptedTaxonToSynonymHandlerE4.java

index cbd85490824acc39af2352971983c2f4504fa98a..e72d3a9c37b331157324a6759cadcd48a1dfbe9e 100644 (file)
@@ -39,15 +39,12 @@ import eu.etaxonomy.taxeditor.ui.dialog.selection.ReferenceSelectionDialog;
 import eu.etaxonomy.taxeditor.ui.dialog.selection.TaxonNodeSelectionDialog;
 
 /**
- *
  * @author pplitzner
  * @since Sep 6, 2017
- *
  */
 public class RemotingChangeAcceptedTaxonToSynonymHandlerE4 extends RemotingCdmHandlerE4 {
 
-
-    private Set<TaxonNodeDto> oldTaxonNodes = new HashSet();
+    private Set<TaxonNodeDto> oldTaxonNodes = new HashSet<>();
     private Classification classification;
     protected boolean isSetSource = false;
 
@@ -75,7 +72,7 @@ public class RemotingChangeAcceptedTaxonToSynonymHandlerE4 extends RemotingCdmHa
         }
 
         // check that selected object is a taxon node
-        Iterator it = selection.iterator();
+        Iterator<?> it = selection.iterator();
         Classification nextClassification;
         oldTaxonNodes = new HashSet<>();
         while(it.hasNext()){
@@ -121,7 +118,7 @@ public class RemotingChangeAcceptedTaxonToSynonymHandlerE4 extends RemotingCdmHa
             MHandledMenuItem menuItem) {
         Set<UUID> excludeTaxa = new HashSet<>();
         Set<UUID> secUuids = new HashSet<>();
-        Set<UUID> nodeUuids = new HashSet();
+        Set<UUID> nodeUuids = new HashSet<>();
         boolean published = true;
 
         for (TaxonNodeDto oldNode:oldTaxonNodes){
@@ -182,12 +179,9 @@ public class RemotingChangeAcceptedTaxonToSynonymHandlerE4 extends RemotingCdmHa
                 }else{
                     return null;
                 }
-
             }
         }
 
-
-
         RemotingChangeAcceptedTaxonToSynonymOperation rcattso =
                 new RemotingChangeAcceptedTaxonToSynonymOperation(getTrigger(),
                         false,
@@ -212,11 +206,8 @@ public class RemotingChangeAcceptedTaxonToSynonymHandlerE4 extends RemotingCdmHa
     public void onComplete() {
     }
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     protected Object getTrigger() {
         return this;
     }
-}
+}
\ No newline at end of file