From ecd7d6d6d53f9147dc2bbe1e0420c604cca9591a Mon Sep 17 00:00:00 2001 From: tpylak <tpylak> Date: Tue, 25 Nov 2008 12:00:10 +0000 Subject: [PATCH] LMS-648 remove the PE hack by changing the bean transformer SVN: 9093 --- .../cisd/openbis/generic/shared/dto/ExperimentPE.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/ExperimentPE.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/ExperimentPE.java index a3caf1bdcb1..e4ccf1d6569 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/ExperimentPE.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/ExperimentPE.java @@ -334,13 +334,6 @@ public class ExperimentPE implements IEntityPropertiesHolder<ExperimentPropertyP parent.getExperimentAttachments().remove(child); } child.setParentInternal(this); - // ensure that the collection is of the proper type - bean populator could set it to - // unmuttable empty list - if (getExperimentAttachments().size() == 0 - && getExperimentAttachments() instanceof HashSet == false) - { - setExperimentAttachments(new ArrayList<AttachmentPE>()); - } getExperimentAttachments().add(child); } -- GitLab