creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549337 - in /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl: ArchiveEntryDocument.java DocumentImplUtils.java FileDocument.java
Date Sun, 08 Dec 2013 21:49:24 GMT
Author: rdonkin
Date: Sun Dec  8 21:49:24 2013
New Revision: 1549337

URL: http://svn.apache.org/r1549337
Log:
Delete Static context.

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/ArchiveEntryDocument.java
    creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/DocumentImplUtils.java
    creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/FileDocument.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/ArchiveEntryDocument.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/ArchiveEntryDocument.java?rev=1549337&r1=1549336&r2=1549337&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/ArchiveEntryDocument.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/ArchiveEntryDocument.java
Sun Dec  8 21:49:24 2013
@@ -56,7 +56,7 @@ public class ArchiveEntryDocument implem
     }
 
     public boolean isComposite() {
-        return DocumentImplUtils.isZipStream(new ByteArrayInputStream(contents));
+        return new DocumentImplUtils().isZipStream(new ByteArrayInputStream(contents));
     }
 
     public Reader reader() throws IOException {

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/DocumentImplUtils.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/DocumentImplUtils.java?rev=1549337&r1=1549336&r2=1549337&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/DocumentImplUtils.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/DocumentImplUtils.java
Sun Dec  8 21:49:24 2013
@@ -58,7 +58,7 @@ public final class DocumentImplUtils {
 	 *            the stream
 	 * @return true, if is zip stream
 	 */
-	public static boolean isZipStream(final InputStream stream) {
+	public boolean isZipStream(final InputStream stream) {
 		ZipInputStream zip = new ZipInputStream(stream);
 		boolean result = true;
 		try {
@@ -80,7 +80,7 @@ public final class DocumentImplUtils {
 	 *            the file
 	 * @return true, if is zip
 	 */
-	public static boolean isZip(final File file) {
+	public boolean isZip(final File file) {
 		boolean result;
 		try {
 			result = isZipStream(new FileInputStream(file));

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/FileDocument.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/FileDocument.java?rev=1549337&r1=1549336&r2=1549337&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/FileDocument.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/FileDocument.java
Sun Dec  8 21:49:24 2013
@@ -45,7 +45,7 @@ public class FileDocument implements Doc
     }
 
     public boolean isComposite() {
-        return DocumentImplUtils.isZip(file);
+		return new DocumentImplUtils().isZip(file);
     }
 
     public Reader reader() throws IOException {



Mime
View raw message