cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 26 Nov 2021 23:11:43 +0000 (00:11 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Fri, 26 Nov 2021 23:11:43 +0000 (00:11 +0100)
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/NavigationUtil.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/wizard/AvailableDistributionWizard.java

index 2d33925c277fe7ca1736b9173fd89188cf521b97..52c0c4723ae052b43aae014d9879cbbb8bd65369 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.navigation;
 
 import java.util.Collection;
@@ -48,10 +47,8 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin;
 
 /**
- *
  * @author n.hoffmann
  * @created 24.03.2009
- * @version 1.0
  */
 public class NavigationUtil extends AbstractUtility{
 
@@ -122,24 +119,13 @@ public class NavigationUtil extends AbstractUtility{
                            e.getMessage(), TaxeditorStorePlugin.PLUGIN_ID,
                            e,
                            true);
-
                }
        }
 
-       /**
-        * <p>openEmpty</p>
-        *
-        * @param parentNodeUuid a {@link java.util.UUID} object.
-        */
        public static void openEmpty(UUID parentNodeUuid) {
            EditorUtil.openEmptyE4(parentNodeUuid);
        }
 
-       /**
-        * <p>getUndoContext</p>
-        *
-        * @return a {@link org.eclipse.core.commands.operations.IUndoContext} object.
-        */
        public static IUndoContext getUndoContext() {
                // FIXME this has to be more specific. Every widget has to have its own undo context
 //             return IOperationHistory.GLOBAL_UNDO_CONTEXT;
@@ -193,11 +179,6 @@ public class NavigationUtil extends AbstractUtility{
         return false;
     }
 
-       /**
-        * <p>openSearch</p>
-        *
-        * @param selection a {@link java.lang.Object} object.
-        */
        public static void openSearch(Object selection) {
                if(selection instanceof Taxon){
                        Taxon taxon = (Taxon) selection;
@@ -250,13 +231,7 @@ public class NavigationUtil extends AbstractUtility{
 //             }
        }
 
-       /**
-        * <p>getPluginId</p>
-        *
-        * @return a {@link java.lang.String} object.
-        */
        public static String getPluginId(){
                return TaxeditorNavigationPlugin.PLUGIN_ID;
        }
-
-}
+}
\ No newline at end of file
index 78d5c524f20ab007436025904946dbba0a5cefee..60b5894c6af2fbec4e8cbc693ef86117147e16f5 100644 (file)
@@ -44,11 +44,11 @@ public class AvailableDistributionWizard extends Wizard {
         if (!checkNoneChecked()) {
             Object[] checkedElements = aPage.getViewer().getCheckedElements();
             Object[] grayedElements = aPage.getViewer().getGrayedElements();
-            ArrayList checkedList = new ArrayList(Arrays.asList(checkedElements));
-            ArrayList grayedList = new ArrayList(Arrays.asList(grayedElements));
+            ArrayList<Object> checkedList = new ArrayList<>(Arrays.asList(checkedElements));
+            ArrayList<Object> grayedList = new ArrayList<>(Arrays.asList(grayedElements));
             checkedList = (ArrayList) CollectionUtils.subtract(checkedList, grayedList);
-            ArrayList<UUID> listUIIDChecked = new ArrayList<UUID>();
-            ArrayList<UUID> listUIIDGrayed = new ArrayList<UUID>();
+            ArrayList<UUID> listUIIDChecked = new ArrayList<>();
+            ArrayList<UUID> listUIIDGrayed = new ArrayList<>();
             for (Object o : checkedList) {
                 if (o instanceof TermDto) {
                     listUIIDChecked.add(((TermDto) o).getUuid());