|
|
Re: BuddyPolicy dependents are not sorted [message #1073291 is a reply to message #1073261] |
Wed, 24 July 2013 13:29 |
Jakob Braeuchi Messages: 69 Registered: July 2009 Location: Switzerland |
Member |
|
|
hi thomas,
thanks for your answer.
Does the list allDependents really grow after it has been filtered in the constructor of RegisteredPolicy:
public RegisteredPolicy(BundleLoader requester) {
super(requester);
//Filter the dependents;
if (allDependents == null)
return;
for (Iterator<BundleDescription> iter = allDependents.iterator(); iter.hasNext();) {
BundleLoaderProxy proxy = buddyRequester.getLoaderProxy(iter.next());
if (proxy == null)
iter.remove();
...
}
//After the filtering, if nothing is left then null out the variable for optimization
if (allDependents.size() == 0)
allDependents = null;
}
jakob
[Updated on: Wed, 24 July 2013 13:30] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04395 seconds