You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by rf...@apache.org on 2007/08/31 23:24:38 UTC
svn commit: r571594 -
/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java
Author: rfrovarp
Date: Fri Aug 31 14:24:38 2007
New Revision: 571594
URL: http://svn.apache.org/viewvc?rev=571594&view=rev
Log:
Protects paramList. Using final only protects the reference to the array, not the references contained within. Shallow clone is good enough to get around this.
Modified:
lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java
Modified: lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java?rev=571594&r1=571593&r2=571594&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/InputModuleParameters.java Fri Aug 31 14:24:38 2007
@@ -47,7 +47,7 @@
throws ConfigurationException
{
params = new Parameters();
- this.paramList = paramList;
+ this.paramList = (String[])paramList.clone();
parseParameters(parameters, minParams);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org