cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 11 May 2021 13:46:33 +0000 (15:46 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 11 May 2021 13:46:33 +0000 (15:46 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/NomenclaturalCodeHelper.java

index 3915887438ba9c9d9f70b585132381985bb42830..5df9d06000690bae67c46ae33081482e98d693ab 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.model;
 
 import java.util.ArrayList;
@@ -17,31 +16,17 @@ import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
 import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
 
 /**
- * <p>NomenclaturalCodeHelper class.</p>
- *
  * @author p.ciardelli
  * @created 11.09.2009
- * @version 1.0
  */
 public class NomenclaturalCodeHelper {
 
-       /**
-        * <p>getAllCodes</p>
-        *
-        * @return a {@link java.util.List} object.
-        */
        public static List<NomenclaturalCode> getAllCodes() {
                return Arrays.asList(NomenclaturalCode.values());
        }
 
-
-       /**
-        * <p>getSupportedCodes</p>
-        *
-        * @return a {@link java.util.List} object.
-        */
        public static List<NomenclaturalCode> getSupportedCodes() {
-               List<NomenclaturalCode> supportedCodes = new ArrayList<NomenclaturalCode>();
+               List<NomenclaturalCode> supportedCodes = new ArrayList<>();
                NomenclaturalCode nomenclaturalCode =PreferencesUtil.getPreferredNomenclaturalCode();
                for (NomenclaturalCode code : getAllCodes()) {
                        if (isSupported(code)) {
@@ -55,10 +40,6 @@ public class NomenclaturalCodeHelper {
                return supportedCodes;
        }
 
-       /**
-        * @param code
-        * @return
-        */
        private static boolean isSupported(NomenclaturalCode code) {
                if (code.equals(NomenclaturalCode.ICNAFP ) || code.equals(NomenclaturalCode.ICZN)) {
                        return true;
@@ -67,13 +48,6 @@ public class NomenclaturalCodeHelper {
                }
        }
 
-
-       /**
-        * <p>getDescription</p>
-        *
-        * @param code a {@link eu.etaxonomy.cdm.model.name.NomenclaturalCode} object.
-        * @return a {@link java.lang.String} object.
-        */
        public static String getDescription(NomenclaturalCode code) {
                if (code.equals(NomenclaturalCode.ICNP)) {
                        return "International Code of Nomenclature of Bacteria (ICNP)";
@@ -93,12 +67,7 @@ public class NomenclaturalCodeHelper {
                return code.name();
        }
 
-       /**
-        * <p>getDefaultCode</p>
-        *
-        * @return a {@link eu.etaxonomy.cdm.model.name.NomenclaturalCode} object.
-        */
        public static NomenclaturalCode getDefaultCode() {
                return NomenclaturalCode.ICNAFP ;
        }
-}
+}
\ No newline at end of file