creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549294 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java
Date Sun, 08 Dec 2013 21:28:30 GMT
Author: rdonkin
Date: Sun Dec  8 21:28:30 2013
New Revision: 1549294

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

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

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java?rev=1549294&r1=1549293&r2=1549294&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java
Sun Dec  8 21:28:30 2013
@@ -58,7 +58,7 @@ public class ReportConfiguration {
 	 * @param headerMatcher
 	 *            the new header matcher
 	 */
-	public void setHeaderMatcher(IHeaderMatcher headerMatcher) {
+	public void setHeaderMatcher(final IHeaderMatcher headerMatcher) {
 		this.headerMatcher = headerMatcher;
 	}
 
@@ -77,8 +77,9 @@ public class ReportConfiguration {
 	 * @param approvedLicenseNames
 	 *            the new approved license names
 	 */
-	public void setApprovedLicenseNames(ILicenseFamily[] approvedLicenseNames) {
-		this.approvedLicenseNames = approvedLicenseNames;
+	public void setApprovedLicenseNames(
+			final ILicenseFamily... approvedLicenseNames) {
+		this.approvedLicenseNames = approvedLicenseNames.clone();
 	}
 
 	/**
@@ -100,7 +101,7 @@ public class ReportConfiguration {
 	 *            the new copyright message
 	 * @see #setAddingLicenses(boolean)
 	 */
-	public void setCopyrightMessage(String copyrightMessage) {
+	public void setCopyrightMessage(final String copyrightMessage) {
 		this.copyrightMessage = copyrightMessage;
 	}
 
@@ -123,7 +124,7 @@ public class ReportConfiguration {
 	 *            the new adding licenses forced
 	 * @see #isAddingLicenses()
 	 */
-	public void setAddingLicensesForced(boolean addingLicensesForced) {
+	public void setAddingLicensesForced(final boolean addingLicensesForced) {
 		this.addingLicensesForced = addingLicensesForced;
 	}
 
@@ -146,7 +147,7 @@ public class ReportConfiguration {
 	 * @see #setAddingLicensesForced(boolean)
 	 * @see #setCopyrightMessage(String)
 	 */
-	public void setAddingLicenses(boolean addingLicenses) {
+	public void setAddingLicenses(final boolean addingLicenses) {
 		this.addingLicenses = addingLicenses;
 	}
 



Mime
View raw message