creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549241 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/header/HeaderMatcher.java
Date Sun, 08 Dec 2013 21:01:36 GMT
Author: rdonkin
Date: Sun Dec  8 21:01:36 2013
New Revision: 1549241

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

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/header/HeaderMatcher.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/header/HeaderMatcher.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/header/HeaderMatcher.java?rev=1549241&r1=1549240&r2=1549241&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/header/HeaderMatcher.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/header/HeaderMatcher.java
Sun Dec  8 21:01:36 2013
@@ -80,7 +80,7 @@ public class HeaderMatcher {
 			final HeaderBean[] headers) {
 		factory = new FilteringSequenceFactory(capacity, filter);
 		read = null;
-		this.headers = headers;
+		this.headers = headers.clone();
 	}
 
 	/**
@@ -91,7 +91,7 @@ public class HeaderMatcher {
 	 * @throws IOException
 	 *             Signals that an I/O exception has occurred.
 	 */
-	public void read(Reader reader) throws IOException {
+	public void read(final Reader reader) throws IOException {
 		final LineNumberReader lineNumberReader = new LineNumberReader(reader);
 		read = factory.filter(lineNumberReader);
 		if (lineNumberReader.read() == -1) {
@@ -128,7 +128,7 @@ public class HeaderMatcher {
 	 * @return true if the pattern matches, false otherwise or if
 	 *         {@link #read(Reader)} has not been called
 	 */
-	public boolean matches(Pattern pattern) {
+	public boolean matches(final Pattern pattern) {
 		boolean result = false;
 		if (read != null) {
 			final Matcher matcher = pattern.matcher(read);



Mime
View raw message