cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Mon, 31 Aug 2020 22:11:46 +0000 (00:11 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Mon, 31 Aug 2020 22:11:46 +0000 (00:11 +0200)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditorQuery.java
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationRemoteConfiguration.java
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationRemoteController.java
eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/editor/AlignmentEditorInput.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/matching/AbstractMatchingPreferences.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/matching/NonViralNameMatchingPreference.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/CdmPreferencePage.java

index 2ce3910b5df1c2c9f6583bc420a96c38df3402bb..53cf0820bb45babddb1585e0d7fe36a9007dbb1c 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.bulkeditor;
 
 import java.util.ArrayList;
@@ -20,7 +19,6 @@ import eu.etaxonomy.cdm.persistence.query.OrderHint;
 /**
  * @author n.hoffmann
  * @created Dec 14, 2010
- * @version 1.0
  */
 public class BulkEditorQuery {
 
index 87f76fdfe557b95e8004e2ce520c034772812fee..cd1971f2f1c3efe4b05c3c5c4277da4faeb8caf7 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1\r
  * See LICENSE.TXT at the top of this package for the full license terms.\r
  */\r
-\r
 package eu.etaxonomy.cdm.api.application;\r
 \r
 import java.util.ArrayList;\r
@@ -97,7 +96,6 @@ import eu.etaxonomy.taxeditor.service.RemoteInvocationTermCacher;
 import eu.etaxonomy.taxeditor.session.CdmEntitySessionManager;\r
 import eu.etaxonomy.taxeditor.session.ICdmEntitySessionManager;\r
 \r
-\r
 /**\r
  * CDM Application Configuration class which manages the configuration for remoting\r
  * clients\r
@@ -131,7 +129,6 @@ public class CdmApplicationRemoteConfiguration implements ICdmRepository, Applic
      */\r
     public static final int HTTP_READ_TIMEOUT = 10 * 60 * 1000;\r
 \r
-\r
     protected ApplicationContext applicationContext;\r
 \r
     private ICdmRemoteSource remoteSource;\r
@@ -157,7 +154,6 @@ public class CdmApplicationRemoteConfiguration implements ICdmRepository, Applic
 \r
     public CdmApplicationRemoteConfiguration(ICdmRemoteSource remoteSource) {\r
         this.remoteSource = remoteSource;\r
-\r
     }\r
 \r
     public void setRemoteSource(ICdmRemoteSource remoteSource) {\r
@@ -423,7 +419,6 @@ public class CdmApplicationRemoteConfiguration implements ICdmRepository, Applic
         return (IPolytomousKeyService) getService(IPolytomousKeyService.class, "/remoting/polytomouskey.service", new AuthenticatingHttpInvokerRequestExecutor());\r
     }\r
 \r
-\r
     @Override\r
     public IPolytomousKeyNodeService getPolytomousKeyNodeService(){\r
         return (IPolytomousKeyNodeService) getService(IPolytomousKeyNodeService.class, "/remoting/polytomouskeynode.service", new AuthenticatingHttpInvokerRequestExecutor());\r
index e5950676bc26cabbc9b6cc22b4828705598309f1..9c66b08028cffe47235052c0b71ecccc7b205aad 100644 (file)
@@ -6,8 +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.cdm.api.application;
 
 import java.util.List;
@@ -35,7 +33,6 @@ import eu.etaxonomy.taxeditor.session.ICdmEntitySessionManager;
  * FIXME:Remoting extending {@link CdmApplicationController} is a temporary workaround.
  * The {@link CdmApplicationController} should be split into a CdmApplicationControllerBase
  * class with {@link CdmApplicationController} and this class as subclasses
- *
  */
 public class CdmApplicationRemoteController  extends CdmApplicationController {
 
@@ -78,7 +75,6 @@ public class CdmApplicationRemoteController  extends CdmApplicationController {
                 false,
                 progressMonitor,
                 listeners);
-
     }
 
     public static CdmApplicationRemoteController NewInstance(ICdmRemoteSource remoteSource,
index b9835667e34be1ee62c55747810c6a942941fb70..76c26380d137634780944d7067ce24d572851791 100644 (file)
@@ -8,7 +8,6 @@
 */
 package eu.etaxonomy.taxeditor.molecular.editor;
 
-
 import java.util.Arrays;
 import java.util.List;
 import java.util.UUID;
@@ -18,8 +17,6 @@ import eu.etaxonomy.cdm.model.molecular.Sequence;
 import eu.etaxonomy.taxeditor.editor.CdmEntitySessionInput;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
-
-
 /**
  * @author pplitzner
  * @author Ben Stöver
@@ -36,7 +33,6 @@ public class AlignmentEditorInput extends CdmEntitySessionInput {
                initSession();
        }
 
-
        /**
         * Returns the {@link UUID} of the sequence CDM node that should be edited by the {@link AlignmentEditor} this object
         * is used with.
@@ -47,7 +43,6 @@ public class AlignmentEditorInput extends CdmEntitySessionInput {
                return sequenceNodeUuid;
        }
 
-
        @Override
        public int hashCode() {
                final int prime = 31;
@@ -57,7 +52,6 @@ public class AlignmentEditorInput extends CdmEntitySessionInput {
                return result;
        }
 
-
        @Override
        public boolean equals(Object obj) {
                if (this == obj) {
@@ -80,26 +74,17 @@ public class AlignmentEditorInput extends CdmEntitySessionInput {
                return true;
        }
 
-
        public void setSequenceNode(Sequence sequenceNode) {
            this.sequenceNode = sequenceNode;
        }
 
-    /* (non-Javadoc)
-     * @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled#getRootEntities()
-     */
     @Override
     public List<Sequence> getRootEntities() {
         return Arrays.asList(sequenceNode);
     }
 
-
-    /* (non-Javadoc)
-     * @see eu.etaxonomy.taxeditor.editor.CdmEntitySessionInput#merge()
-     */
     @Override
     public void merge() {
         CdmStore.getService(ISequenceService.class).merge(sequenceNode, true);
-
     }
 }
index 542e18c87233e2aa64053dbed9c478c1e9ecb78c..6dc5295401f375b087e66d82b8e7ead5c5dc36a8 100644 (file)
@@ -6,10 +6,8 @@
 * 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.preference.matching;
 
-
 import java.lang.reflect.Field;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -32,9 +30,9 @@ import eu.etaxonomy.taxeditor.preference.menu.CdmPreferencePage;
 /**
  * @author n.hoffmann
  * @created Jan 22, 2010
- * @version 1.0
  */
-public abstract class AbstractMatchingPreferences<T extends IdentifiableEntity> extends CdmPreferencePage {
+public abstract class AbstractMatchingPreferences<T extends IdentifiableEntity> 
+               extends CdmPreferencePage {
 
        /**
         * Fields that will be excluded from the display
@@ -48,7 +46,7 @@ public abstract class AbstractMatchingPreferences<T extends IdentifiableEntity>
 
        private List<MatchMode> matchModeList;
 
-       protected Map<String, ComboFieldEditor> matchModeCombos = new HashMap();
+       protected Map<String, ComboFieldEditor> matchModeCombos = new HashMap<>();
 
         @Override
         protected Control createContents(Composite parent) {
@@ -60,7 +58,6 @@ public abstract class AbstractMatchingPreferences<T extends IdentifiableEntity>
 
            top.setLayoutData(layoutData);
 
-
 //            final GridLayout gridLayout = new GridLayout();
 //            gridLayout.numColumns = 2;
 //
@@ -84,7 +81,6 @@ public abstract class AbstractMatchingPreferences<T extends IdentifiableEntity>
            }
 
               return top;
-
            }
 
            @Override
@@ -97,17 +93,17 @@ public abstract class AbstractMatchingPreferences<T extends IdentifiableEntity>
 
            @Override
            public boolean performOk() {
-              if (matchModeCombos.size() >0){
+              if (matchModeCombos.size() > 0){
                   for (ComboFieldEditor editor: matchModeCombos.values()){
                       editor.store();
                   }
               }
               return super.performOk();
-
            }
+           
            @Override
            protected void performDefaults() {
-               if (matchModeCombos.size() >0){
+               if (matchModeCombos.size() > 0){
                       for (ComboFieldEditor editor: matchModeCombos.values()){
                           editor.loadDefault();
                       }
@@ -115,12 +111,6 @@ public abstract class AbstractMatchingPreferences<T extends IdentifiableEntity>
                super.performDefaults();
            }
 
-
-
-
-//     /**
-//      * {@inheritDoc}
-//      */
 //     @Override
 //     protected void createFieldEditors() {
 //         if(CdmStore.isActive()) {
@@ -151,11 +141,9 @@ public abstract class AbstractMatchingPreferences<T extends IdentifiableEntity>
 
        /**
         * Get names of all declared fields
-        *
-        * @return
         */
        private List<String> getFieldNames(){
-               List<Field> fields = new ArrayList<Field>();
+               List<Field> fields = new ArrayList<>();
 
                fields = getAllFields(fields, clazz);
                List<String> fieldNames = new ArrayList<String>();
index 1c5db7eb7b97edc8045e465c2725734dc7102277..8502d34d0c7c87a42e4cc88393b79685052990de 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.preference.matching;
 
 import eu.etaxonomy.cdm.model.name.TaxonName;
@@ -23,7 +22,6 @@ import eu.etaxonomy.taxeditor.model.MessagingUtils;
  */
 public class NonViralNameMatchingPreference extends AbstractMatchingPreferences<TaxonName>{
 
-       /** {@inheritDoc} */
        @Override
     public void init() {
            super.init();
@@ -37,7 +35,6 @@ public class NonViralNameMatchingPreference extends AbstractMatchingPreferences<
                }
        }
 
-       /** {@inheritDoc} */
        @Override
        protected IMatchStrategy getDefaultMatchStrategy() throws MatchException {
                return MatchStrategyConfigurator.getDefaultNonViralNameMatchStrategy();
index 525f20fc7435d2b4bd0aba3826ff38f272514ffc..8c83ba3c614312f59c98c9780a332f8e483086ec 100644 (file)
@@ -28,11 +28,9 @@ import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
 /**
  * @author cmathew
  * @date 30 Jul 2015
- *
  */
 public abstract class CdmPreferencePage extends PreferencePage implements IE4PreferencePage {
 
-
     private boolean isDefaultButtonActivated = true;
 
     protected boolean isAdminPreference = false;
@@ -56,8 +54,6 @@ public abstract class CdmPreferencePage extends PreferencePage implements IE4Pre
         init();
     }
 
-
-
     public void init() {
         setPreferenceStore(PreferencesUtil.getPreferenceStore());
     }
@@ -71,7 +67,6 @@ public abstract class CdmPreferencePage extends PreferencePage implements IE4Pre
         if (getDefaultsButton() != null){
             this.getDefaultsButton().setEnabled(isDefaultButtonActivated);
         }
-
     }
 
     @Override
@@ -107,7 +102,6 @@ public abstract class CdmPreferencePage extends PreferencePage implements IE4Pre
         return activateComp;
     }
 
-
     protected GridData createTextGridData() {
         GridData sepGrid = new GridData(GridData.FILL_HORIZONTAL);
         sepGrid.horizontalSpan = 2;
@@ -115,10 +109,8 @@ public abstract class CdmPreferencePage extends PreferencePage implements IE4Pre
     }
 
     protected void getValues(){
-
     }
 
-
     protected Button createAllowOverrideButton(Composite activateComp) {
         final Button allowOverrideCheckButton = new Button(activateComp, SWT.CHECK);
         String overrideString;
@@ -186,10 +178,8 @@ public abstract class CdmPreferencePage extends PreferencePage implements IE4Pre
         booleanCombo.add(textFalse);
 
         return booleanCombo;
-
     }
 
-
     public Combo createCombo(Composite parent, IKeyLabel[] enumValues, IPreferencePredicate predicate, String labelText, boolean isAdminPage) {
         final CLabel description = new CLabel(parent, SWT.NULL);
         description.setText(labelText);
@@ -199,7 +189,6 @@ public abstract class CdmPreferencePage extends PreferencePage implements IE4Pre
 
         Combo booleanCombo = new Combo(parent, SWT.BORDER | SWT.READ_ONLY);
 
-
         CdmPreference dbPref = PreferencesUtil.getPreferenceFromDB(predicate);
         String defaultValue = "";
         if (dbPref != null && !isAdminPage && dbPref.getValue() != null){
@@ -224,7 +213,6 @@ public abstract class CdmPreferencePage extends PreferencePage implements IE4Pre
             }catch(NullPointerException e){
                 defaultValue = "";
             }
-
         }
 
         booleanCombo.add(Messages.Preference_Use_Default + " ("+defaultValue+")");
@@ -236,7 +224,6 @@ public abstract class CdmPreferencePage extends PreferencePage implements IE4Pre
         }
 
         return booleanCombo;
-
     }
 
     public Boolean getBooleanPrefValue(CdmPreference pref) {
@@ -250,9 +237,4 @@ public abstract class CdmPreferencePage extends PreferencePage implements IE4Pre
     public boolean getPrefAllowOverride(CdmPreference pref) {
         return pref != null? pref.isAllowOverride(): true;
     }
-
-
-
-
-
 }