You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After new Path set to Flow, the contexts in the old path may be destroyed.
Why only the tail of the old path will be destroyed rather than all contexts which are not in the new path?
The commented in the following code is what I wants to do.
/** Finds the tail of this path which is not in the given path, and destroys it. */publicvoiddestroyNotIn(PathContextpath, PathContextFactoryfactory) {
Iterator<Path> aElements = this.path.elements().iterator();
Iterator<Path> bElements = path.path.elements().iterator();
while (aElements.hasNext() && bElements.hasNext()) {
PathaElement = aElements.next();
PathbElement = bElements.next();
if (!aElement.equals(bElement)) {
factory.tearDownContext(contexts.get(aElement));
break;
}
}
/** while (aElements.hasNext()) { factory.tearDownContext(contexts.get(aElements.next())); } **/
}
The text was updated successfully, but these errors were encountered:
After new Path set to Flow, the contexts in the old path may be destroyed.
Why only the tail of the old path will be destroyed rather than all contexts which are not in the new path?
The commented in the following code is what I wants to do.
The text was updated successfully, but these errors were encountered: