svn commit: r1388062 - /cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/XMLSitemapServlet.java

[email protected]
Newsgroups gmane.text.xml.cocoon.cvs
Message-ID <[email protected]>
Author: ilgrosso
Date: Thu Sep 20 15:09:46 2012
New Revision: 1388062

URL: http://svn.apache.org/viewvc?rev=1388062&view=rev
Log:
Formatting and minor issues~

Modified:
    cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/XMLSitemapServlet.java

Modified: cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/XMLSitemapServlet.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/XMLSitemapServlet.java?rev=1388062&r1=1388061&r2=1388062&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/XMLSitemapServlet.java (original)
+++ cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/XMLSitemapServlet.java Thu Sep 20 15:09:46 2012
@@ -19,7 +19,6 @@
 package org.apache.cocoon.servlet;
 
 import java.io.IOException;
-
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
@@ -34,20 +33,16 @@ import org.slf4j.LoggerFactory;
  */
 public class XMLSitemapServlet extends HttpServlet {
 
-    private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = -3357343514247739162L;
 
-    /**
-     * Logger.
-     */
-    protected static final Logger LOG =
-            LoggerFactory.getLogger(XMLSitemapServlet.class);
+    protected static final Logger LOG = LoggerFactory.getLogger(XMLSitemapServlet.class);
 
     protected transient RequestProcessor requestProcessor;
 
     @Override
-    protected void service(final HttpServletRequest req,
-            final HttpServletResponse resp)
+    protected void service(final HttpServletRequest req, final HttpServletResponse resp)
             throws ServletException, IOException {
+
         this.lazyInitialize();
 
         try {
@@ -63,34 +58,27 @@ public class XMLSitemapServlet extends H
 
         synchronized (this) {
             final Settings settings = (Settings) WebAppContextUtils.
-                    getCurrentWebApplicationContext().getBean(
-                    Settings.class.getName());
+                    getCurrentWebApplicationContext().getBean(Settings.class.getName());
 
-            if (!settings.isReloadingEnabled("sitemap")
-                    && this.requestProcessor != null) {
+            if (!settings.isReloadingEnabled("sitemap") && this.requestProcessor != null) {
                 return;
             }
 
             try {
-                this.requestProcessor =
-                        new RequestProcessor(
+                this.requestProcessor = new RequestProcessor(
                         this.getServletContext(),
                         this.getInitParameter("sitemap-path"),
                         WebAppContextUtils.getCurrentWebApplicationContext());
             } catch (Exception e) {
-                this.wrapException(e,
-                        "Can't initialize the RequestProcessor correctly.");
+                this.wrapException(e, "Can't initialize the RequestProcessor correctly.");
             }
         }
     }
 
-    protected ServletException wrapException(final Exception exception,
-            final String msg) {
-
+    protected ServletException wrapException(final Exception exception, final String msg) {
         LOG.error(msg, exception);
 
-        final ServletException servletException =
-                new ServletException(msg, exception);
+        final ServletException servletException = new ServletException(msg, exception);
         if (servletException.getCause() == null) {
             servletException.initCause(exception);
         }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.