creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548276 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DefaultAnalyser.java
Date Thu, 05 Dec 2013 20:32:18 GMT
Author: rdonkin
Date: Thu Dec  5 20:32:18 2013
New Revision: 1548276

URL: http://svn.apache.org/r1548276
Log:
Pull into field, read for future injection

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

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DefaultAnalyser.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DefaultAnalyser.java?rev=1548276&r1=1548275&r2=1548276&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DefaultAnalyser.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DefaultAnalyser.java
Thu Dec  5 20:32:18 2013
@@ -30,6 +30,7 @@ final class DefaultAnalyser implements I
 
     private final IHeaderMatcher matcher;
     private final ArchiveGuesser archiveGuesser = new ArchiveGuesser();
+    private final NoteGuesser noteGuessor = new NoteGuesser();
 
     public DefaultAnalyser(final IHeaderMatcher matcher) {
         super();
@@ -39,7 +40,7 @@ final class DefaultAnalyser implements I
     public void analyse(final Document subject)
             throws RatDocumentAnalysisException {
         final MetaData.Datum documentCategory;
-        if (new NoteGuesser().matches(subject)) {
+        if (this.noteGuessor.matches(subject)) {
             documentCategory = MetaData.RAT_DOCUMENT_CATEGORY_DATUM_NOTICE;
         } else {
             if (this.archiveGuesser.matches(subject)) {



Mime
View raw message