diff gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java @ 1061:13bea93a070a

Do not call the endOfLife method of the current state before advancing to a next state, because this would remove elements from cache that have been inserted just before - it would be impossible to make use of a cache in that case. gnv-artifacts/trunk@1144 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 01 Jun 2010 16:59:15 +0000
parents 22c18083225e
children 58b4a07db856
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java	Tue Jun 01 16:54:21 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java	Tue Jun 01 16:59:15 2010 +0000
@@ -255,10 +255,6 @@
         next.setParent(current);
         next.setPreSettings(this.preSettings);
 
-        if (current != null) {
-            current.endOfLife(context.globalContext());
-        }
-
         // 3. Switch to next State
         current = next;
 

http://dive4elements.wald.intevation.org