jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r385455 - /incubator/jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java
Date Mon, 13 Mar 2006 08:20:29 GMT
Author: angela
Date: Mon Mar 13 00:20:28 2006
New Revision: 385455

URL: http://svn.apache.org/viewcvs?rev=385455&view=rev
Log:
fixing indention

Modified:
    incubator/jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java

Modified: incubator/jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java?rev=385455&r1=385454&r2=385455&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java
(original)
+++ incubator/jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java
Mon Mar 13 00:20:28 2006
@@ -88,7 +88,7 @@
             if (el != null) {
                 Object inst = buildClassFromConfig(el);
                 if (inst != null && inst instanceof IOManager) {
-                   ioManager = (IOManager)inst;
+                    ioManager = (IOManager)inst;
                 }
             } else {
                 log.error("Resource configuration: mandatory 'iomanager' element is missing.");
@@ -97,11 +97,11 @@
             el = DomUtil.getChildElement(config, "collection", null);
             if (el != null) {
                 nodetypeNames = parseNodeTypesEntry(el);
-                    collectionNames = true;
+                collectionNames = true;
             } else if ((el = DomUtil.getChildElement(config, "noncollection", null)) != null)
{
                 nodetypeNames = parseNodeTypesEntry(el);
-                    collectionNames = false;
-                }
+                collectionNames = false;
+            }
             // todo: should check if both 'noncollection' and 'collection' are present and
write a warning
 
             el = DomUtil.getChildElement(config, "filter", null);
@@ -131,17 +131,17 @@
         Element classElem = DomUtil.getChildElement(parent, "class", null);
         if (classElem != null) {
             // contains a 'class' child node
-        try {
+            try {
                 String className = DomUtil.getAttribute(classElem, "name", null);
-            if (className != null) {
-                Class c = Class.forName(className);
-                instance = c.newInstance();
+                if (className != null) {
+                    Class c = Class.forName(className);
+                    instance = c.newInstance();
                 } else {
-                log.error("Invalid configuration: missing 'class' element");
+                    log.error("Invalid configuration: missing 'class' element");
+                }
+            } catch (Exception e) {
+                log.error("Error while create class instance: " + e.getMessage());
             }
-        } catch (Exception e) {
-            log.error("Error while create class instance: " + e.getMessage());
-        }
         }
         return instance;
     }
@@ -179,7 +179,7 @@
             while (it.hasNext()) {
                 Element e = it.nextElement();
                 l.add(DomUtil.getText(e));
-        }
+            }
             ntNames = (String[])l.toArray(new String[l.size()]);
         } else {
             ntNames = new String[0];
@@ -239,4 +239,4 @@
         }
         return itemFilter;
     }
-}
+}
\ No newline at end of file



Mime
View raw message