creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549495 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportTransformer.java
Date Mon, 09 Dec 2013 06:18:31 GMT
Author: rdonkin
Date: Mon Dec  9 06:18:31 2013
New Revision: 1549495

URL: http://svn.apache.org/r1549495
Log:
Format Code.

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportTransformer.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportTransformer.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportTransformer.java?rev=1549495&r1=1549494&r2=1549495&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportTransformer.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportTransformer.java
Mon Dec  9 06:18:31 2013
@@ -15,7 +15,7 @@
  * KIND, either express or implied.  See the License for the    *
  * specific language governing permissions and limitations      *
  * under the License.                                           *
- */ 
+ */
 package org.apache.rat;
 
 import java.io.InputStream;
@@ -29,39 +29,38 @@ import javax.xml.transform.TransformerFa
 import javax.xml.transform.stream.StreamResult;
 import javax.xml.transform.stream.StreamSource;
 
-
 class ReportTransformer implements Runnable {
 
-    private final Writer out;
-    private final Transformer transformer;
-    private final Reader in;
-    
-    public ReportTransformer(final Writer out, final Reader style, 
-            final Reader in) throws TransformerConfigurationException {
-        this.out = out;
-        transformer = TransformerFactory.newInstance().newTransformer(
-                new StreamSource(style));
-        this.in = in;
-    }
-    
-    public ReportTransformer(final Writer out, final InputStream style, 
-            final Reader in) throws TransformerConfigurationException {
-        this.out = out;
-        transformer = TransformerFactory.newInstance().newTransformer(
-                new StreamSource(style));
-        this.in = in;
-    }
-    
-    public void run() {
-        try {
-            transform();
-        } catch (TransformerException e) {
-            throw new ReportFailedRuntimeException(e.getMessage(), e);
-        }
-    }
-
-    public void transform() throws TransformerException {
-        transformer.transform(new StreamSource(in), new StreamResult(out));
-    }
+	private final Writer out;
+	private final Transformer transformer;
+	private final Reader in;
+
+	public ReportTransformer(final Writer out, final Reader style,
+			final Reader in) throws TransformerConfigurationException {
+		this.out = out;
+		transformer = TransformerFactory.newInstance().newTransformer(
+				new StreamSource(style));
+		this.in = in;
+	}
+
+	public ReportTransformer(final Writer out, final InputStream style,
+			final Reader in) throws TransformerConfigurationException {
+		this.out = out;
+		transformer = TransformerFactory.newInstance().newTransformer(
+				new StreamSource(style));
+		this.in = in;
+	}
+
+	public void run() {
+		try {
+			transform();
+		} catch (TransformerException e) {
+			throw new ReportFailedRuntimeException(e.getMessage(), e);
+		}
+	}
+
+	public void transform() throws TransformerException {
+		transformer.transform(new StreamSource(in), new StreamResult(out));
+	}
 
 }



Mime
View raw message