Skip to Content.
Sympa Menu

perfsonar-dev - [pS-dev] [GEANT/SA2/ps-java-services] r6364 - trunk/perfsonar-base/messaging/src/main/java/net/geant/perfsonar/messaging

Subject: perfsonar development work

List archive

[pS-dev] [GEANT/SA2/ps-java-services] r6364 - trunk/perfsonar-base/messaging/src/main/java/net/geant/perfsonar/messaging


Chronological Thread 
  • From:
  • To:
  • Subject: [pS-dev] [GEANT/SA2/ps-java-services] r6364 - trunk/perfsonar-base/messaging/src/main/java/net/geant/perfsonar/messaging
  • Date: Mon, 6 May 2013 18:18:59 +0100 (BST)
  • Authentication-results: sfpop-ironport03.merit.edu; dkim=neutral (message not signed) header.i=none

Author: psnc.pietrzak
Date: 2013-05-06 18:18:59 +0100 (Mon, 06 May 2013)
New Revision: 6364

Modified:

trunk/perfsonar-base/messaging/src/main/java/net/geant/perfsonar/messaging/XPathDeserializer.java
Log:
Solved concurrency bug.

Modified:
trunk/perfsonar-base/messaging/src/main/java/net/geant/perfsonar/messaging/XPathDeserializer.java
===================================================================
---
trunk/perfsonar-base/messaging/src/main/java/net/geant/perfsonar/messaging/XPathDeserializer.java
2013-05-06 17:18:36 UTC (rev 6363)
+++
trunk/perfsonar-base/messaging/src/main/java/net/geant/perfsonar/messaging/XPathDeserializer.java
2013-05-06 17:18:59 UTC (rev 6364)
@@ -2,6 +2,7 @@

import java.util.ArrayList;
import java.util.Hashtable;
+import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -138,9 +139,9 @@
public List<?> deserialize(InputSource reader) throws
DeserializationException {
final XMLDog dog = new XMLDog(context);
final List<Throwable> exceptions = new ArrayList<Throwable>();
- for (String xpath : XPathDeserializer.getXPaths()) {
+ for (Iterator<String> iter =
XPathDeserializer.getXPaths().iterator(); iter.hasNext(); ) {
try {
- dog.addXPath(xpath);
+ dog.addXPath(iter.next());
} catch (XPathSyntaxException ex) {
exceptions.add(new XPathException("Invalid
XPath: " + ex.getMultilineMessage()));
} catch (SAXPathException ex) {



  • [pS-dev] [GEANT/SA2/ps-java-services] r6364 - trunk/perfsonar-base/messaging/src/main/java/net/geant/perfsonar/messaging, svn-noreply, 05/06/2013

Archive powered by MHonArc 2.6.16.

Top of Page