creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549134 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DocumentHeaderAnalyser.java
Date Sun, 08 Dec 2013 19:16:08 GMT
Author: rdonkin
Date: Sun Dec  8 19:16:07 2013
New Revision: 1549134

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

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

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DocumentHeaderAnalyser.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DocumentHeaderAnalyser.java?rev=1549134&r1=1549133&r2=1549134&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DocumentHeaderAnalyser.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DocumentHeaderAnalyser.java
Sun Dec  8 19:16:07 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.analysis;
 
 import java.io.IOException;
@@ -26,29 +26,30 @@ import org.apache.rat.document.IDocument
 
 public class DocumentHeaderAnalyser implements IDocumentAnalyser {
 
-    private final IHeaderMatcher matcher;
-    
-    public DocumentHeaderAnalyser(final IHeaderMatcher matcher) {
-        super();
-        this.matcher = matcher;
-    }
-
-    public void analyse(Document document) throws IOException{
-        Reader reader = null;
-        try {
-            reader = document.reader();
-            // TODO: worker function should be moved into this class
-            HeaderCheckWorker worker = new HeaderCheckWorker(reader, matcher, document);
-            worker.read();
-        } finally {
-            if (reader != null) {
-                try {
-                    reader.close();
-                } catch (IOException e) {
-                    // SWALLOW
-                }
-            }
-        }
-     }
+	private final IHeaderMatcher matcher;
+
+	public DocumentHeaderAnalyser(final IHeaderMatcher matcher) {
+		super();
+		this.matcher = matcher;
+	}
+
+	public void analyse(Document document) throws IOException {
+		Reader reader = null;
+		try {
+			reader = document.reader();
+			// TODO: worker function should be moved into this class
+			HeaderCheckWorker worker = new HeaderCheckWorker(reader, matcher,
+					document);
+			worker.read();
+		} finally {
+			if (reader != null) {
+				try {
+					reader.close();
+				} catch (IOException e) {
+					// SWALLOW
+				}
+			}
+		}
+	}
 
 }



Mime
View raw message