diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/impl/watch/NodeDescriptorImpl.java b/java/debugger/impl/src/com/intellij/debugger/ui/impl/watch/NodeDescriptorImpl.java index f2f5b1c23283..1377a913be48 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/impl/watch/NodeDescriptorImpl.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/impl/watch/NodeDescriptorImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,6 +15,7 @@ */ package com.intellij.debugger.ui.impl.watch; +import com.intellij.codeInspection.SmartHashMap; import com.intellij.debugger.DebuggerBundle; import com.intellij.debugger.engine.DebugProcess; import com.intellij.debugger.engine.evaluation.EvaluateException; @@ -47,9 +48,8 @@ public abstract class NodeDescriptorImpl implements NodeDescriptor { private EvaluateException myEvaluateException; private String myLabel = UNKNOWN_VALUE_MESSAGE; - private HashMap myUserData; + private Map myUserData; - private final List myChildren = new ArrayList(); private static final Key> MARKUP_MAP_KEY = new Key>("ValueMarkupMap"); @Override @@ -69,7 +69,7 @@ public abstract class NodeDescriptorImpl implements NodeDescriptor { @Override public void putUserData(Key key, T value) { if(myUserData == null) { - myUserData = new HashMap(); + myUserData = new SmartHashMap(); } myUserData.put(key, value); } @@ -153,10 +153,6 @@ public abstract class NodeDescriptorImpl implements NodeDescriptor { myLabel = ""; } - public List getChildren() { - return myChildren; - } - @Override public void setAncestor(NodeDescriptor oldDescriptor) { displayAs(oldDescriptor);