From dd244f30c5b1738361adcf495bce6e007a97fbee Mon Sep 17 00:00:00 2001 From: Katja Luther Date: Wed, 18 May 2016 12:41:15 +0200 Subject: [PATCH] fix for #5638 --- .../ui/section/name/ProtologueSection.java | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/ProtologueSection.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/ProtologueSection.java index 8f444705e..05a117bd6 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/ProtologueSection.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/ProtologueSection.java @@ -1,9 +1,9 @@ // $Id$ /** * Copyright (C) 2007 EDIT -* European Distributed Institute of Taxonomy +* European Distributed Institute of Taxonomy * http://www.e-taxonomy.eu -* +* * 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. */ @@ -36,7 +36,7 @@ import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection; * @version 1.0 */ public class ProtologueSection extends AbstractEntityCollectionSection implements ITaxonBaseDetailSection{ - + private TaxonBase taxonBase; /** @@ -97,16 +97,17 @@ public class ProtologueSection extends AbstractEntityCollectionSection descriptions = getTaxonNameDescriptions(getEntity()); for (TaxonNameDescription desc : descriptions){ desc.removeElement(element); - } + } } /** {@inheritDoc} */ - public void setTaxonBase(TaxonBase entity) { + @Override + public void setTaxonBase(TaxonBase entity) { this.taxonBase = entity; - NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(entity.getName(), NonViralName.class); + NonViralName name = HibernateProxyHelper.deproxy(entity.getName(), NonViralName.class); setEntity(name); } - + /** * NOTE: returns first description * @param name @@ -118,7 +119,7 @@ public class ProtologueSection extends AbstractEntityCollectionSection