chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject chukwa git commit: CHUKWA-816. Fix wrong use of incrementers in a for loop.
Date Thu, 02 Feb 2017 04:44:57 GMT
Repository: chukwa
Updated Branches:
  refs/heads/master 384e3a13a -> ffd0d400e


CHUKWA-816. Fix wrong use of incrementers in a for loop.

This closes #5


Project: http://git-wip-us.apache.org/repos/asf/chukwa/repo
Commit: http://git-wip-us.apache.org/repos/asf/chukwa/commit/ffd0d400
Tree: http://git-wip-us.apache.org/repos/asf/chukwa/tree/ffd0d400
Diff: http://git-wip-us.apache.org/repos/asf/chukwa/diff/ffd0d400

Branch: refs/heads/master
Commit: ffd0d400ebd911ffa88bb9a46b08a261bc999dd6
Parents: 384e3a1
Author: JC <jc@lifove.net>
Authored: Wed Feb 1 22:23:48 2017 -0500
Committer: Eric Yang <eyang@apache.org>
Committed: Wed Feb 1 20:44:42 2017 -0800

----------------------------------------------------------------------
 src/main/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/chukwa/blob/ffd0d400/src/main/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java b/src/main/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java
index 269720c..3934069 100755
--- a/src/main/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java
+++ b/src/main/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java
@@ -167,7 +167,7 @@ public class WidgetBean {
           for(int i=0;i<this.parameters.length;i++) {
             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()) {
+              if(plist[j].getName().intern()==this.parameters[i].getName().intern()) {
                 plist[j].setValue(value);
               }
             }


Mime
View raw message