forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r699278 - /forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java
Date Fri, 26 Sep 2008 11:27:35 GMT
Author: thorsten
Date: Fri Sep 26 04:27:34 2008
New Revision: 699278

URL: http://svn.apache.org/viewvc?rev=699278&view=rev
Log:
white noise - formating changes

Modified:
    forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java

Modified: forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java?rev=699278&r1=699277&r2=699278&view=diff
==============================================================================
--- forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java
(original)
+++ forrest/trunk/whiteboard/dispatcher/java/org/apache/forrest/dispatcher/impl/XMLStructurer.java
Fri Sep 26 04:27:34 2008
@@ -104,10 +104,10 @@
     } catch (IOException e) {
       throw new DispatcherException(e);
     } finally {
-        try {
-          StreamHelper.closeStream(structurerStream);
-        } catch (IOException e) {
-          throw new DispatcherException(e);
+      try {
+        StreamHelper.closeStream(structurerStream);
+      } catch (IOException e) {
+        throw new DispatcherException(e);
       }
     }
     return stream;
@@ -184,19 +184,19 @@
         injectResult(writer, element);
         closingPaths(writer, split);
       } else {
-        if(replaceFirst!=null && !replaceFirst.equals("")){
+        if (replaceFirst != null && !replaceFirst.equals("")) {
           StartElement start = getEventFactory().createStartElement("", "",
               replaceFirst);
           writer.add((XMLEvent) start);
         }
 
         injectResult(writer, element);
- if(replaceFirst!=null && !replaceFirst.equals("")){
-   EndElement end = getEventFactory().createEndElement("", "",
-       replaceFirst);
-   writer.add((XMLEvent) end);
+        if (replaceFirst != null && !replaceFirst.equals("")) {
+          EndElement end = getEventFactory().createEndElement("", "",
+              replaceFirst);
+          writer.add((XMLEvent) end);
         }
-        
+
       }
 
     }



Mime
View raw message