creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549447 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/ArchiveEntryDocument.java
Date Mon, 09 Dec 2013 06:03:31 GMT
Author: rdonkin
Date: Mon Dec  9 06:03:30 2013
New Revision: 1549447

URL: http://svn.apache.org/r1549447
Log:
Apply PMD change.

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/ArchiveEntryDocument.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=1549447&r1=1549446&r2=1549447&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
Mon Dec  9 06:03:30 2013
@@ -35,7 +35,7 @@ import org.apache.rat.api.MetaData;
 public class ArchiveEntryDocument implements Document {
 
 	/** The contents. */
-	private byte[] contents;
+	final private byte[] contents;
 
 	/** The name. */
 	private final String name;
@@ -51,10 +51,10 @@ public class ArchiveEntryDocument implem
 	 * @param contents
 	 *            the contents
 	 */
-	public ArchiveEntryDocument(File file, byte[] contents) {
+	public ArchiveEntryDocument(final File file, final byte... contents) {
 		super();
 		name = DocumentImplUtils.toName(file);
-		this.contents = contents;
+		this.contents = contents.clone();
 	}
 
 	/*



Mime
View raw message