summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/ElementHandler.java
diff options
context:
space:
mode:
authorDavid A. Madore <david@procyon.(none)>2010-04-15 21:07:01 +0200
committerDavid A. Madore <david@procyon.(none)>2010-04-15 21:07:01 +0200
commit9176d80ae6dcad88da79714d934b226afe66c1ad (patch)
tree32c843f6e7e63d5e997525296b0921cc50f53ddb /org/madore/damlengine/ElementHandler.java
parent5c6ccfca16a421860cd57d11e41d94d8a70cda76 (diff)
downloaddamlengine-9176d80ae6dcad88da79714d934b226afe66c1ad.tar.gz
damlengine-9176d80ae6dcad88da79714d934b226afe66c1ad.tar.bz2
damlengine-9176d80ae6dcad88da79714d934b226afe66c1ad.zip
Instantiate TodoDeque rather than using static variables.
Unfortunately, processing is now rather significantly slower.
Diffstat (limited to 'org/madore/damlengine/ElementHandler.java')
-rw-r--r--org/madore/damlengine/ElementHandler.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org/madore/damlengine/ElementHandler.java b/org/madore/damlengine/ElementHandler.java
index 4e14756..59981ac 100644
--- a/org/madore/damlengine/ElementHandler.java
+++ b/org/madore/damlengine/ElementHandler.java
@@ -15,7 +15,7 @@ public abstract class ElementHandler {
new HashMap<String,Object>());
toProcess.add(it);
}
- TodoDeque.registerAtStart(toProcess);
+ that.ownerDeque.registerAtStart(toProcess);
}
public void handleNodeOnly(TodoElement that) {
@@ -30,10 +30,11 @@ public abstract class ElementHandler {
toProcess.add(it);
}
}
- TodoDeque.registerAtStart(toProcess);
+ that.ownerDeque.registerAtStart(toProcess);
}
public void handle(TodoElement that) {
+ assert(that.ownerDeque != null);
handleAttributes(that);
handleNodeOnly(that);
}