[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Shutdown of controller

adrian@jboss.org do-not-reply at jboss.com
Tue Jun 5 11:24:50 EDT 2007


"alesj" wrote : 
  | I think you've got a typo here:
  | 
  |   |          for (int i = states.size()-1; i>=0; --i)
  |   |          {
  |   |             ControllerState state = states.get(i);
  |   |             result.addAll(contextsByState.get(state));
  |   |             result.addAll(errorContexts.values());
  |   |          }
  |   | 
  | Probably adding errorContexts at the end, outside loop? ;-)
  | 

Correct, but it just :-) inefficient since the result is a Set.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051423#4051423

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051423



More information about the jboss-dev-forums mailing list