From f114fa58fe391ec054072b249d1d629bbb27b786 Mon Sep 17 00:00:00 2001 From: mka Date: Tue, 19 Mar 2013 09:18:24 +0000 Subject: [PATCH] small corrections --- .../org/splat/service/StudyServiceImpl.java | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java b/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java index 5cd8631..14145e9 100644 --- a/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java +++ b/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java @@ -54,12 +54,12 @@ import org.splat.dal.bo.som.Publication; import org.splat.dal.bo.som.Scenario; import org.splat.dal.bo.som.SimulationContext; import org.splat.dal.bo.som.Study; +import org.splat.dal.bo.som.Study.Properties; import org.splat.dal.bo.som.ValidationCycle; +import org.splat.dal.bo.som.ValidationCycle.Actor; import org.splat.dal.bo.som.ValidationCycleRelation; import org.splat.dal.bo.som.ValidationStep; import org.splat.dal.bo.som.Visibility; -import org.splat.dal.bo.som.Study.Properties; -import org.splat.dal.bo.som.ValidationCycle.Actor; import org.splat.dal.dao.som.DescriptionAttributeDAO; import org.splat.dal.dao.som.DocumentDAO; import org.splat.dal.dao.som.IDBuilderDAO; @@ -80,9 +80,9 @@ import org.splat.service.dto.DocumentDTO; import org.splat.service.dto.StudyFacadeDTO; import org.splat.service.technical.IndexService; import org.splat.service.technical.ProjectSettingsService; +import org.splat.service.technical.ProjectSettingsService.Step; import org.splat.service.technical.ProjectSettingsServiceImpl; import org.splat.service.technical.RepositoryService; -import org.splat.service.technical.ProjectSettingsService.Step; import org.splat.som.Revision; import org.springframework.transaction.annotation.Transactional; @@ -1304,8 +1304,9 @@ public class StudyServiceImpl implements StudyService { dataset.addSeries(series); } catch (FileNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + if (LOG.isDebugEnabled()) { + LOG.debug("Sorry, the file is not found."); + } return "ERROR"; } } // for @@ -1345,11 +1346,13 @@ public class StudyServiceImpl implements StudyService { document.close(); } catch (FileNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + if (LOG.isDebugEnabled()) { + LOG.debug("Sorry, the file is not found."); + } } catch (DocumentException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + if (LOG.isDebugEnabled()) { + LOG.debug("Sorry, the DocumentException is thrown."); + } } return resultPath; -- 2.39.2