creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548404 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/DefaultAnalyser.java
Date Fri, 06 Dec 2013 08:12:20 GMT
Author: rdonkin
Date: Fri Dec  6 08:12:19 2013
New Revision: 1548404

URL: http://svn.apache.org/r1548404
Log:
Push into field, preparing for 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=1548404&r1=1548403&r2=1548404&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
Fri Dec  6 08:12:19 2013
@@ -31,6 +31,7 @@ final class DefaultAnalyser implements I
     private final IHeaderMatcher matcher;
     private final ArchiveGuesser archiveGuesser = new ArchiveGuesser();
     private final NoteGuesser noteGuessor = new NoteGuesser();
+    private final BinaryGuesser binaryGuessor = new BinaryGuesser();
 
     public DefaultAnalyser(final IHeaderMatcher matcher) {
         super();
@@ -45,7 +46,7 @@ final class DefaultAnalyser implements I
         } else {
             if (this.archiveGuesser.matches(subject)) {
                 documentCategory = MetaData.RAT_DOCUMENT_CATEGORY_DATUM_ARCHIVE;
-            } else if (new BinaryGuesser().matches(subject)) {
+            } else if (this.binaryGuessor.matches(subject)) {
                 documentCategory = MetaData.RAT_DOCUMENT_CATEGORY_DATUM_BINARY;
             } else {
                 documentCategory =



Mime
View raw message