chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r893839 - /hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java
Date Fri, 25 Dec 2009 07:43:34 GMT
Author: eyang
Date: Fri Dec 25 07:43:34 2009
New Revision: 893839

URL: http://svn.apache.org/viewvc?rev=893839&view=rev
Log:
CHUKWA-438. Fixed multiple values for ParameterBean. (Eric Yang)

Modified:
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java?rev=893839&r1=893838&r2=893839&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java (original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java Fri Dec
25 07:43:34 2009
@@ -1,6 +1,7 @@
 package org.apache.hadoop.chukwa.rest.bean;
 
 import java.text.ParseException;
+import java.util.Collection;
 
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlRootElement;
@@ -141,7 +142,7 @@
           this.description=widget.getDescription();
           ParametersBean[] plist = widget.getParameters();
           for(int i=0;i<this.parameters.length;i++) {
-            String value = this.parameters[i].getValue();
+            Collection<String> value = this.parameters[i].getValue();
             for(int j=0;j<plist.length;j++) {
               if(plist[i].getName().intern()==this.parameters[j].getName().intern()) {
                 plist[j].setValue(value);



Mime
View raw message