some generic strangeness

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2231 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-09-01 04:36:02 +00:00
parent 00b7716a36
commit f50f5ca8a2
1 changed files with 4 additions and 3 deletions

View File

@ -180,13 +180,14 @@ public class MBeanContainer extends AbstractLifeCycle implements Container.Liste
if (bean!=null)
{
List<Relationship> beanRelations = _relations.getValues(bean);
List<?> beanRelations = _relations.getValues(bean);
if (beanRelations!=null && beanRelations.size()>0)
{
Log.debug("Unregister {}", beanRelations);
List<Relationship> removeList = new ArrayList<Relationship>(beanRelations);
for (Relationship relation : removeList)
List<?> removeList = new ArrayList<Object>(beanRelations);
for (Object r : removeList)
{
Container.Relationship relation = (Relationship)r;
relation.getContainer().update(relation.getParent(),relation.getChild(),null,relation.getRelationship(),true);
}
}