creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548134 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/ArchiveGuesser.java
Date Thu, 05 Dec 2013 13:45:24 GMT
Author: rdonkin
Date: Thu Dec  5 13:45:23 2013
New Revision: 1548134

URL: http://svn.apache.org/r1548134
Log:
Push static method into instance.

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/ArchiveGuesser.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/ArchiveGuesser.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/ArchiveGuesser.java?rev=1548134&r1=1548133&r2=1548134&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/ArchiveGuesser.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/ArchiveGuesser.java
Thu Dec  5 13:45:23 2013
@@ -28,13 +28,16 @@ public class ArchiveGuesser {
             "tar", "bz", "bz2", "rar", "war", };
 
     public static final boolean isArchive(final Document document) {
-        return isArchive(document.getName());
+        return new ArchiveGuesser().isArchive(document.getName());
+    }
+
+    private ArchiveGuesser() {
     }
 
     /**
      * Is a file by that name an archive?
      */
-    private static final boolean isArchive(final String name) {
+    private boolean isArchive(final String name) {
         if (name == null) {
             return false;
         }



Mime
View raw message