Author: rdonkin
Date: Sun Dec 8 21:42:16 2013
New Revision: 1549320
URL: http://svn.apache.org/r1549320
Log:
Format Code.
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/Pipeline.java
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/Pipeline.java
URL:
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/Pipeline.java?rev=1549320&r1=1549319&r2=1549320&view=diff
==============================================================================
---
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/Pipeline.java
(original)
+++
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/Pipeline.java
Sun Dec 8 21:42:16 2013
@@ -29,45 +29,45 @@ import org.apache.rat.report.RatReport;
public class Pipeline implements RatReport {
- private final DefaultAnalyser analyser;
- private final DefaultPolicy policy;
- private final List<? extends RatReport> reporters;
-
- public Pipeline(final DefaultAnalyser analyser, final DefaultPolicy policy,
- final List<? extends RatReport> reporters) {
- super();
- this.analyser = analyser;
- this.policy = policy;
- this.reporters = reporters;
- }
-
- public void report(final Document document) throws RatException {
- if (this.analyser != null) {
- try {
- this.analyser.analyse(document);
- } catch (final IOException e) {
- throw new RatException(e.getMessage(), e);
- }
- }
-
- if (this.policy != null) {
- this.policy.analyse(document);
- }
-
- for (final RatReport report : this.reporters) {
- report.report(document);
- }
- }
-
- public void startReport() throws RatException {
- for (final RatReport report : this.reporters) {
- report.startReport();
- }
- }
-
- public void endReport() throws RatException {
- for (final RatReport report : this.reporters) {
- report.endReport();
- }
- }
+ private final DefaultAnalyser analyser;
+ private final DefaultPolicy policy;
+ private final List<? extends RatReport> reporters;
+
+ public Pipeline(final DefaultAnalyser analyser, final DefaultPolicy
policy,
+ final List<? extends RatReport> reporters) {
+ super();
+ this.analyser = analyser;
+ this.policy = policy;
+ this.reporters = reporters;
+ }
+
+ public void report(final Document document) throws RatException {
+ if (this.analyser != null) {
+ try {
+ this.analyser.analyse(document);
+ } catch (final IOException e) {
+ throw new RatException(e.getMessage(), e);
+ }
+ }
+
+ if (this.policy != null) {
+ this.policy.analyse(document);
+ }
+
+ for (final RatReport report : this.reporters) {
+ report.report(document);
+ }
+ }
+
+ public void startReport() throws RatException {
+ for (final RatReport report : this.reporters) {
+ report.startReport();
+ }
+ }
+
+ public void endReport() throws RatException {
+ for (final RatReport report : this.reporters) {
+ report.endReport();
+ }
+ }
}