get rid of JDOM duplicates in memory

This commit is contained in:
Alexey Kudravtsev
2013-02-25 14:33:14 +04:00
parent 8a5fe9a453
commit 19d062cae6
@@ -261,7 +261,8 @@ public class InspectionProfileImpl extends ProfileEx implements ModifiableModel,
StringInterner interner = new StringInterner();
for (final Object o : element.getChildren(INSPECTION_TOOL_TAG)) {
Element toolElement = (Element)o;
// make clone to avoid retaining memory via o.parent pointers
Element toolElement = (Element)((Element)o).clone();
JDOMUtil.internElement(toolElement, interner);
String toolClassName = toolElement.getAttributeValue(CLASS_TAG);