You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2012/05/05 22:23:39 UTC

svn commit: r1334483 - /ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java

Author: jleroux
Date: Sat May  5 20:23:39 2012
New Revision: 1334483

URL: http://svn.apache.org/viewvc?rev=1334483&view=rev
Log:
Simplify code, non functional changes

Modified:
    ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java

Modified: ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java?rev=1334483&r1=1334482&r2=1334483&view=diff
==============================================================================
--- ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java (original)
+++ ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java Sat May  5 20:23:39 2012
@@ -631,15 +631,11 @@ public class CatalinaContainer implement
         Document webXmlDoc = null;
         try {
             webXmlDoc = UtilXml.readXmlDocument(webXmlUrl);
-        } catch (SAXException se) {
-            throw new ContainerException(se);
-        } catch (ParserConfigurationException pce) {
-            throw new ContainerException(pce);
-        } catch (IOException ioe) {
-            throw new ContainerException(ioe);
+        } catch (Exception e) {
+            throw new ContainerException(e);
         }
 
-        boolean appIsDistributable = webXmlDoc.getElementsByTagName("distributable").getLength() > 0 ? true : false;
+        boolean appIsDistributable = webXmlDoc.getElementsByTagName("distributable").getLength() > 0;
         final boolean contextIsDistributable = distribute && appIsDistributable;
 
         // configure persistent sessions