cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Ulrich Niedermann <n...@n-dimensional.de>
Subject [C2][Patch] LogTransformer Java Code Conventions cleanup
Date Sat, 10 Mar 2001 21:38:23 GMT
Index: src/org/apache/cocoon/transformation/LogTransformer.java
===================================================================
RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/transformation/Attic/LogTransformer.java,v
retrieving revision 1.1.2.15
diff -u -r1.1.2.15 LogTransformer.java
--- src/org/apache/cocoon/transformation/LogTransformer.java	2001/02/22 17:10:55	1.1.2.15
+++ src/org/apache/cocoon/transformation/LogTransformer.java	2001/03/10 20:59:25
@@ -57,9 +57,9 @@
 
     /** true if filename is valid and writeable */
     private boolean isValid = true;
-    /** filename for log file	*/
+    /** filename for log file */
     private String logfilename = null;
-    /** log file	*/
+    /** log file */
     private FileWriter logfile = null;
     /** should we append content to the log file */
     private boolean append = false;
@@ -104,8 +104,9 @@
      */
     public void setDocumentLocator(Locator locator) {
         log("setDocumentLocator","");
-        if (super.contentHandler!=null)
+        if (super.contentHandler!=null) {
             super.contentHandler.setDocumentLocator(locator);
+        }
     }
 
     /**
@@ -114,8 +115,9 @@
     public void startDocument()
     throws SAXException {
         log("startDocument", "");
-        if (super.contentHandler!=null)
+        if (super.contentHandler!=null) {
             super.contentHandler.startDocument();
+        }
         this.canReset=false;
     }
 
@@ -125,8 +127,9 @@
     public void endDocument()
     throws SAXException {
         log ("endDocument", "");
-        if (super.contentHandler!=null)
+        if (super.contentHandler!=null) {
             super.contentHandler.endDocument();
+        }
         this.canReset=true;
     }
 
@@ -136,8 +139,9 @@
     public void startPrefixMapping(String prefix, String uri)
     throws SAXException {
         log ("startPrefixMapping", "prefix="+prefix+",uri="+uri);
-        if (super.contentHandler!=null)
+        if (super.contentHandler!=null) {
             super.contentHandler.startPrefixMapping(prefix,uri);
+        }
     }
 
     /**
@@ -162,8 +166,9 @@
                  +",type="+a.getType(i)
                  +",value="+a.getValue(i));
         }
-        if (super.contentHandler!=null)
+        if (super.contentHandler!=null) {
             super.contentHandler.startElement(uri,loc,raw,a);
+        }
     }
 
 
@@ -173,8 +178,9 @@
     public void endElement(String uri, String loc, String qname)
     throws SAXException {
         log ("endElement", "uri="+uri+",local="+loc+",qname="+qname);
-        if (super.contentHandler!=null)
+        if (super.contentHandler!=null) {
             super.contentHandler.endElement(uri,loc,qname);
+        }
     }
 
     /**
@@ -183,8 +189,9 @@
     public void characters(char ch[], int start, int len)
     throws SAXException {
         log ("characters", new String(ch,start,len));
-        if (super.contentHandler!=null)
+        if (super.contentHandler!=null) {
             super.contentHandler.characters(ch,start,len);
+        }
     }
 
     /**
@@ -193,8 +200,9 @@
     public void ignorableWhitespace(char ch[], int start, int len)
     throws SAXException {
         log ("ignorableWhitespace", new String(ch,start,len));
-        if (super.contentHandler!=null)
+        if (super.contentHandler!=null) {
             super.contentHandler.ignorableWhitespace(ch,start,len);
+        }
     }
 
     /**
@@ -203,8 +211,9 @@
     public void processingInstruction(String target, String data)
     throws SAXException {
         log ("processingInstruction", "target="+target+",data="+data);
-        if (super.contentHandler!=null)
+        if (super.contentHandler!=null) {
             super.contentHandler.processingInstruction(target,data);
+        }
     }
 
     /**
@@ -213,8 +222,9 @@
     public void skippedEntity(String name)
     throws SAXException {
         log ("skippedEntity", "name="+name);
-        if (super.contentHandler!=null)
+        if (super.contentHandler!=null) {
             super.contentHandler.skippedEntity(name);
+        }
     }
 
     /**
@@ -223,8 +233,9 @@
     public void startDTD(String name, String publicId, String systemId)
     throws SAXException {
         log ("startDTD", "name="+name+",publicId="+publicId+",systemId="+systemId);
-        if (super.lexicalHandler!=null)
+        if (super.lexicalHandler!=null) {
             super.lexicalHandler.startDTD(name,publicId,systemId);
+        }
     }
 
     /**
@@ -233,8 +244,9 @@
     public void endDTD()
     throws SAXException {
         log ("endDTD", "");
-        if (super.lexicalHandler!=null)
+        if (super.lexicalHandler!=null) {
             super.lexicalHandler.endDTD();
+        }
     }
 
     /**
@@ -243,8 +255,9 @@
     public void startEntity(String name)
     throws SAXException {
         log ("startEntity", "name="+name);
-        if (super.lexicalHandler!=null)
+        if (super.lexicalHandler!=null) {
             super.lexicalHandler.startEntity(name);
+        }
     }
 
     /**
@@ -253,8 +266,9 @@
     public void endEntity(String name)
     throws SAXException {
         log ("endEntity", "name="+name);
-        if (super.lexicalHandler!=null)
+        if (super.lexicalHandler!=null) {
             super.lexicalHandler.endEntity(name);
+        }
     }
 
     /**
@@ -263,8 +277,9 @@
     public void startCDATA()
     throws SAXException {
         log ("startCDATA", "");
-        if (super.lexicalHandler!=null)
+        if (super.lexicalHandler!=null) {
             super.lexicalHandler.startCDATA();
+        }
     }
 
     /**
@@ -273,8 +288,9 @@
     public void endCDATA()
     throws SAXException {
         log ("endCDATA", "");
-        if (super.lexicalHandler!=null)
+        if (super.lexicalHandler!=null) {
             super.lexicalHandler.endCDATA();
+        }
     }
 
     /**
@@ -283,8 +299,9 @@
     public void comment(char ch[], int start, int len)
     throws SAXException {
         log ("comment", new String(ch,start,len));
-        if (super.lexicalHandler!=null)
+        if (super.lexicalHandler!=null) {
             super.lexicalHandler.comment(ch,start,len);
+        }
     }
 
     /**


Mime
View raw message