Skip to Content.
Sympa Menu

perfsonar-dev - r1505 - trunk/perfsonar/src/org/perfsonar/commons/util

Subject: perfsonar development work

List archive

r1505 - trunk/perfsonar/src/org/perfsonar/commons/util


Chronological Thread 
  • From:
  • To:
  • Subject: r1505 - trunk/perfsonar/src/org/perfsonar/commons/util
  • Date: Tue, 1 Aug 2006 10:28:03 -0400

Author: roman
Date: 2006-08-01 10:28:02 -0400 (Tue, 01 Aug 2006)
New Revision: 1505

Modified:
trunk/perfsonar/src/org/perfsonar/commons/util/XMLUtils.java
Log:
small bug (call of iterartor was in wrong place) in getElement method fixed

Modified: trunk/perfsonar/src/org/perfsonar/commons/util/XMLUtils.java
===================================================================
--- trunk/perfsonar/src/org/perfsonar/commons/util/XMLUtils.java
2006-08-01 14:17:42 UTC (rev 1504)
+++ trunk/perfsonar/src/org/perfsonar/commons/util/XMLUtils.java
2006-08-01 14:28:02 UTC (rev 1505)
@@ -376,16 +376,18 @@

Map<String, Element> map = new HashMap();

- Iterator it = ht.values().iterator();
Element element = null;
boolean found = false;

for (int i = 0; i < names.length; i++) {
+
+ Iterator it = ht.values().iterator();

while(it.hasNext()) {

element = (Element) it.next();
String ln = element.getLocalName();
+
if (ln.equals(names[i])) {
found = true;
map.put(element.getId(), element);



  • r1505 - trunk/perfsonar/src/org/perfsonar/commons/util, svnlog, 08/01/2006

Archive powered by MHonArc 2.6.16.

Top of Page