creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548854 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/util/HeaderMatcherMultiplexer.java
Date Sat, 07 Dec 2013 11:04:54 GMT
Author: rdonkin
Date: Sat Dec  7 11:04:54 2013
New Revision: 1548854

URL: http://svn.apache.org/r1548854
Log:
Apply PMD Rules.

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

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/util/HeaderMatcherMultiplexer.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/util/HeaderMatcherMultiplexer.java?rev=1548854&r1=1548853&r2=1548854&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/util/HeaderMatcherMultiplexer.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/util/HeaderMatcherMultiplexer.java
Sat Dec  7 11:04:54 2013
@@ -37,7 +37,7 @@ public final class HeaderMatcherMultiple
 	 *            the matchers
 	 */
 	public HeaderMatcherMultiplexer(final IHeaderMatcher[] matchers) {
-		this.matchers = matchers;
+		this.matchers = matchers.clone();
 	}
 
 	/*
@@ -47,7 +47,7 @@ public final class HeaderMatcherMultiple
 	 * org.apache.rat.analysis.IHeaderMatcher#match(org.apache.rat.api.Document,
 	 * java.lang.String)
 	 */
-	public boolean match(Document subject, String line) {
+	public boolean match(final Document subject, final String line) {
 		boolean result = false;
 		for (IHeaderMatcher matcher : matchers) {
 			result = matcher.match(subject, line);



Mime
View raw message