Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
0.6.0, 0.7.0, 0.8.0
-
None
-
None
Description
Is this incorrect use of incrementers in this for statement?
(From the recent snapshot in github mirror. Path: src/main/java/org/apache/hadoop/chukwa/rest/bean/WidgetBean.java
In Line 170, plist[i] should be plist[j] and parameters[j] should be parameters[i]??
167 for(int i=0;i<this.parameters.length;i++) { 168 Collection<String> value = this.parameters[i].getValue(); 169 for(int j=0;j<plist.length;j++) { 170 if(plist[i].getName().intern()==this.parameters[j].getName().intern()) { 171 plist[j].setValue(value); 172 } 173 } 174 } 175 this.parameters=plist;
Since I do not have domain knowledge, I have no idea if parameters.length and plist.length is always same. But, I thought it might be worth to report just in case.
Attachments
Issue Links
- links to