Author: rahul
Date: Mon Jul 28 15:14:16 2008
New Revision: 680536
URL: http://svn.apache.org/viewvc?rev=680536&view=rev
Log:
Port r680533 from trunk.
SCXMLListeners will not processed in defined order.
Variant of patch by Daniel Schwager <daniel dot schwager at dtnet dot de>.
Also added Daniel to list of contributors.
SCXML-78
Modified:
commons/proper/scxml/branches/J6/pom.xml
commons/proper/scxml/branches/J6/project.xml
commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/NotificationRegistry.java
Modified: commons/proper/scxml/branches/J6/pom.xml
URL:
http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/pom.xml?rev=680536&r1=680535&r2=680536&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/pom.xml (original)
+++ commons/proper/scxml/branches/J6/pom.xml Mon Jul 28 15:14:16 2008
@@ -111,6 +111,9 @@
<contributor>
<name>Edzard Hoefig</name>
</contributor>
+ <contributor>
+ <name>Daniel Schwager</name>
+ </contributor>
</contributors>
<dependencies>
Modified: commons/proper/scxml/branches/J6/project.xml
URL:
http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/project.xml?rev=680536&r1=680535&r2=680536&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/project.xml (original)
+++ commons/proper/scxml/branches/J6/project.xml Mon Jul 28 15:14:16 2008
@@ -158,6 +158,9 @@
<contributor>
<name>Edzard Hoefig</name>
</contributor>
+ <contributor>
+ <name>Daniel Schwager</name>
+ </contributor>
</contributors>
<dependencies>
Modified:
commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/NotificationRegistry.java
URL:
http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/NotificationRegistry.java?rev=680536&r1=680535&r2=680536&view=diff
==============================================================================
---
commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/NotificationRegistry.java
(original)
+++
commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/NotificationRegistry.java
Mon Jul 28 15:14:16 2008
@@ -19,7 +19,7 @@
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
@@ -64,7 +64,7 @@
synchronized void addListener(final Observable source, final SCXMLListener
lst) {
Set<SCXMLListener> entries = regs.get(source);
if (entries == null) {
- entries = new HashSet<SCXMLListener>();
+ entries = new LinkedHashSet<SCXMLListener>();
regs.put(source, entries);
}
entries.add(lst);