minor change
authorem.lee <em.lee@localhost>
Tue, 7 Sep 2010 10:49:41 +0000 (10:49 +0000)
committerem.lee <em.lee@localhost>
Tue, 7 Sep 2010 10:49:41 +0000 (10:49 +0000)
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiTaxonExport.java

index edfb403beae026adf53325c228b28a31cde6a9a4..e26505e1b81f478ac134504b15f077b65629388b 100644 (file)
@@ -1189,24 +1189,24 @@ public class PesiTaxonExport extends PesiExportBase {
        private static String getAuthorString(TaxonNameBase taxonName) {\r
                String result = null;\r
                try {\r
-               if (taxonName != null && taxonName != null) {\r
-                       if (taxonName.isInstanceOf(NonViralName.class)) {\r
-                               NonViralName nonViralName = CdmBase.deproxy(taxonName, NonViralName.class);\r
-                               String authorshipCache = nonViralName.getAuthorshipCache();\r
-\r
-                               // For a misapplied name without an authorshipCache the authorString should be set to "auct."\r
-                               if (isMisappliedName(taxonName) && authorshipCache == null) {\r
-                                       // Set authorshipCache to "auct."\r
-                                       result = PesiTransformer.auctString;\r
+                       if (taxonName != null) {\r
+                               if (taxonName.isInstanceOf(NonViralName.class)) {\r
+                                       NonViralName nonViralName = CdmBase.deproxy(taxonName, NonViralName.class);\r
+                                       String authorshipCache = nonViralName.getAuthorshipCache();\r
+       \r
+                                       // For a misapplied name without an authorshipCache the authorString should be set to "auct."\r
+                                       if (isMisappliedName(taxonName) && authorshipCache == null) {\r
+                                               // Set authorshipCache to "auct."\r
+                                               result = PesiTransformer.auctString;\r
+                                       } else {\r
+                                               // Return the content of the authorshipCache\r
+                                               result = authorshipCache;\r
+                                       }\r
+       \r
                                } else {\r
-                                       // Return the content of the authorshipCache\r
-                                       result = authorshipCache;\r
+                                       logger.warn("TaxonName is not of instance NonViralName: " + taxonName.getUuid() + " (" + taxonName.getTitleCache() + ")");\r
                                }\r
-\r
-                       } else {\r
-                               logger.warn("TaxonName is not of instance NonViralName: " + taxonName.getUuid() + " (" + taxonName.getTitleCache() + ")");\r
                        }\r
-               }\r
                } catch (Exception e) {\r
                        e.printStackTrace();\r
                }\r