Update of
/var/cvs/contributions/CMSContainer/cmsc/portal/src/java/com/finalist/cmsc/portalImpl
In directory
james.mmbase.org:/tmp/cvs-serv19747/cmsc/portal/src/java/com/finalist/cmsc/portalImpl
Modified Files:
PortalServlet.java
Log Message:
CMSC-907 Code Quality with PMD
PMD error fixes
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/portal/src/java/com/finalist/cmsc/portalImpl
See also: http://www.mmbase.org/jira/browse/CMSC-907
Index: PortalServlet.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/portal/src/java/com/finalist/cmsc/portalImpl/PortalServlet.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- PortalServlet.java 2 Jun 2008 21:56:34 -0000 1.18
+++ PortalServlet.java 9 Jun 2008 21:23:23 -0000 1.19
@@ -38,7 +38,7 @@
@SuppressWarnings("serial")
public class PortalServlet extends HttpServlet {
- private static Log log = LogFactory.getLog(PortalServlet.class);
+ private static final Log log = LogFactory.getLog(PortalServlet.class);
protected static final String PATH_SP = "/";
@@ -66,7 +66,7 @@
try {
ServiceManager.init(sc);
}
- catch (Throwable exc) {
+ catch (Exception exc) {
log.error("Initialization failed!", exc);
throw new UnavailableException("Initialization of one or more
services failed.");
}
@@ -116,7 +116,6 @@
PortletContainerFactory.getPortletContainer().shutdown();
// destroy all services
ServiceManager.destroy(getServletConfig());
- System.gc();
}
catch (Throwable t) {
log.error("Destruction failed!", t);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs