CCM NG/ccm-core: Fixed several things in Bebop

git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4694 8810af33-2d31-482b-a856-94f89814c4df
jensp 2017-04-29 14:52:45 +00:00
parent b4733ec4d5
commit f2664dabb2
2 changed files with 9 additions and 2 deletions

View File

@ -93,7 +93,6 @@ public class SimpleContainer extends SimpleComponent implements Container {
*/ */
public void add(Component pc) { public void add(Component pc) {
Assert.isUnlocked(this); Assert.isUnlocked(this);
Assert.exists(pc);
m_components.add(pc); m_components.add(pc);
} }

View File

@ -93,6 +93,10 @@ public abstract class Traversal {
throw new IllegalStateException throw new IllegalStateException
("Component " + c + " is part of a cycle"); ("Component " + c + " is part of a cycle");
} }
LOGGER.debug("---");
LOGGER.debug("Current component: '{}'", c);
LOGGER.debug("Visiting: {}", m_visiting);
//s_log.debug("preorder called for component " + c.toString()); //s_log.debug("preorder called for component " + c.toString());
@ -108,7 +112,11 @@ public abstract class Traversal {
} }
for (Iterator i = c.children(); i.hasNext(); ) { for (Iterator i = c.children(); i.hasNext(); ) {
preorder ((Component) i.next()); final Component component = (Component) i.next();
LOGGER.debug("Calling preorder for component '{}'...",
component);
LOGGER.debug("---");
preorder (component);
} }
} }