Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/services/impl
In directory 
james.mmbase.org:/tmp/cvs-serv27876/portlets-newsletter/src/java/com/finalist/newsletter/services/impl

Modified Files:
        StatisticServiceImpl.java 
Log Message:
CMSC-725 modify to use new DateUtil


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/services/impl
See also: http://www.mmbase.org/jira/browse/CMSC-725


Index: StatisticServiceImpl.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/services/impl/StatisticServiceImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- StatisticServiceImpl.java   21 Apr 2008 09:51:03 -0000      1.1
+++ StatisticServiceImpl.java   3 May 2008 15:23:34 -0000       1.2
@@ -43,12 +43,8 @@
 
                Date startDate;
                Date endDate;
-               try {
                        startDate = DateUtil.parser(start);
                        endDate = DateUtil.parser(end);
-               } catch (ParseException e) {
-                       throw new ServiceException("Date parser failed", e);
-               }
                List<StatisticResult> list = statisticcao.getAllRecordsByPeriod(
                                startDate, endDate);
                return list;
@@ -66,12 +62,8 @@
 
                Date startDate;
                Date endDate;
-               try {
                        startDate = DateUtil.parser(start);
                        endDate = DateUtil.parser(end);
-               } catch (ParseException e) {
-                       throw new ServiceException("Date parser failed", e);
-               }
                List<StatisticResult> list = statisticcao
                                .getRecordsByNewsletterAndPeriod(startDate, 
endDate, newsletterId);
                StatisticResult result = new StatisticResult();
@@ -106,12 +98,8 @@
 
                Date startDate;
                Date endDate;
-               try {
                        startDate = DateUtil.parser(start);
                        endDate = DateUtil.parser(end);
-               } catch (ParseException e) {
-                       throw new ServiceException("Date parser failed", e);
-               }
                List<StatisticResult> list = statisticcao.getAllRecordsByPeriod(
                                startDate, endDate);
                StatisticResult result = new StatisticResult();
@@ -131,12 +119,8 @@
 
                Date startDate;
                Date endDate;
-               try {
                        startDate = DateUtil.parser(start);
                        endDate = DateUtil.parser(end);
-               } catch (ParseException e) {
-                       throw new ServiceException("Date parser failed", e);
-               }
                List<StatisticResult> list = statisticcao
                                .getRecordsByNewsletterAndPeriod(startDate, 
endDate, newsletterId);
                return list;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to