ref #10055 remove all dependencies to org.apache.commons.lang. from taxeditor
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 10 Feb 2023 10:34:15 +0000 (11:34 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Fri, 10 Feb 2023 10:34:36 +0000 (11:34 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/SpecimenColumnPropertyAccessor.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/cdmlight/CdmLightExportWizardE4.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/EnableComputedDescriptions.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/PersonDetailElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/media/MediaSpecimenGeneralDetailElement.java

index 437ebeaeca5f04a6ed1a9b5b62969415013f0c36..bdfb005fd583df864e1577e0c60729ccf76034d1 100644 (file)
@@ -12,7 +12,7 @@ import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
 import org.eclipse.nebula.widgets.nattable.data.IColumnPropertyAccessor;
 
 import eu.etaxonomy.cdm.api.service.dto.RowWrapperDTO;
@@ -24,6 +24,7 @@ import eu.etaxonomy.cdm.persistence.dto.TermDto;
 /**
  * Property accessor class which maps setting and getting data for
  * each row in the character matrix
+ *
  * @author pplitzner
  * @since Nov 26, 2017
  *
@@ -100,7 +101,7 @@ public class SpecimenColumnPropertyAccessor implements IColumnPropertyAccessor<O
             FeatureDto feature = matrix.getIndexToFeatureMap().get(columnIndex);
             if(feature.isSupportsCategoricalData()
                     && newValue instanceof Collection){
-               
+
                List<TermDto> dtos = new ArrayList<>();
                if (((Collection) newValue).stream().allMatch(o->o instanceof TermDto) ){
                        dtos = (List<TermDto>)newValue;
index eb9956539f88ef5157103439d7b208b33ec5a963..8d11101ea5687d44eda56ca85fe516e6a9324869 100644 (file)
@@ -18,7 +18,7 @@ import java.util.UUID;
 import javax.inject.Inject;
 import javax.inject.Named;
 
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
 import org.eclipse.e4.core.contexts.IEclipseContext;
 import org.eclipse.e4.core.di.annotations.Optional;
 import org.eclipse.e4.ui.services.IServiceConstants;
index 751bea6613363b6e4b44769923d50534b3cad24b..a9af09d6949b51e1c03bae77f7f1ae3ff4c0c099 100644 (file)
@@ -8,7 +8,7 @@
 */
 package eu.etaxonomy.taxeditor.preference;
 
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.SelectionAdapter;
 import org.eclipse.swt.events.SelectionEvent;
index 9439e22c960f70d6ad7604ae2e9272e7cb9fa8a1..9ead6a9f71df735f0c04450cd3e6c12361e4bb82 100644 (file)
@@ -8,7 +8,7 @@
  */
 package eu.etaxonomy.taxeditor.ui.section.agent;
 
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
 import org.eclipse.swt.SWT;
 
 import eu.etaxonomy.cdm.model.agent.Person;
@@ -165,7 +165,7 @@ public class PersonDetailElement extends AbstractIdentifiableEntityDetailElement
        @Override
        public void fillFields() {
                if (getEntity() != null) {
-                       text_nomenclaturalTitle.setText(getEntity().getNomenclaturalTitle()); 
+                       text_nomenclaturalTitle.setText(getEntity().getNomenclaturalTitle());
                        toggleable_cache.setText(getEntity().getTitleCache());
                        toggleable_cache.setCacheEnabled(getEntity().isProtectedTitleCache());
                        text_collectorTitle.setText(getEntity().getCollectorTitle());
@@ -178,6 +178,6 @@ public class PersonDetailElement extends AbstractIdentifiableEntityDetailElement
                        text_orcid.setText(getEntity().getOrcid() != null? getEntity().getOrcid().toString(): null);
                        text_lsid.setText(getEntity().getLsid()!= null? getEntity().getLsid().toString(): null);
                }
-               
+
        }
 }
\ No newline at end of file
index abe1cbf8b244386123ef8797636b61c0f67067b6..79aa3a354fafdb5666e2a8f35c289aef3d7b1d1e 100644 (file)
@@ -8,7 +8,7 @@
  */
 package eu.etaxonomy.taxeditor.ui.section.occurrence.media;
 
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
 import org.eclipse.swt.SWT;
 
 import eu.etaxonomy.cdm.api.service.IVocabularyService;
@@ -219,7 +219,7 @@ public class MediaSpecimenGeneralDetailElement
        @Override
        public void fillFields() {
                // TODO Auto-generated method stub
-               
+
        }
 
 }