Update of /var/cvs/src/org/mmbase/util/xml/applicationdata
In directory james.mmbase.org:/tmp/cvs-serv29649/applicationdata

Modified Files:
        ApplicationReader.java 
Log Message:
code conventions only


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util/xml/applicationdata


Index: ApplicationReader.java
===================================================================
RCS file: 
/var/cvs/src/org/mmbase/util/xml/applicationdata/ApplicationReader.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- ApplicationReader.java      4 Sep 2008 05:56:23 -0000       1.2
+++ ApplicationReader.java      5 Jan 2009 16:34:12 -0000       1.3
@@ -18,7 +18,7 @@
  * @author Case Roole
  * @author Rico Jansen
  * @author Pierre van Rooden
- * @version $Id: ApplicationReader.java,v 1.2 2008/09/04 05:56:23 michiel Exp $
+ * @version $Id: ApplicationReader.java,v 1.3 2009/01/05 16:34:12 michiel Exp $
  */
 public class ApplicationReader extends org.mmbase.util.xml.DocumentReader {
 
@@ -77,16 +77,17 @@
      * Get the version of this application
      */
     public int getVersion() {
-        String ver=getElementAttributeValue(root,"version");
-        if (!ver.equals(""))
+        String ver = getElementAttributeValue(root, "version");
+        if (!ver.equals("")) {
             try {
                 return Integer.parseInt(ver);
             } catch (Exception e) {
                 return -1;
             }
-        else
+        } else {
             return -1;
     }
+    }
 
     /**
      * Get the auto-deploy value of this application
@@ -208,8 +209,8 @@
      */
     public List<Map<String,String>> getContextSources() {
         List<Map<String,String>> results=new ArrayList<Map<String,String>>();
-        for (Element n3: 
getChildElements("application.contextsourcelist","contextsource")) {
-            Map<String,String> bset = new HashMap<String,String>();
+        for (Element n3: getChildElements("application.contextsourcelist", 
"contextsource")) {
+            Map<String, String> bset = new HashMap<String, String>();
             addAttribute(bset,n3,"path");
             addAttribute(bset,n3,"type");
             addAttribute(bset,n3,"goal");
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to