mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use trove collections
This commit is contained in:
@@ -51,6 +51,7 @@ import com.intellij.openapi.wm.ToolWindowId;
|
||||
import com.intellij.ui.AppUIUtil;
|
||||
import com.intellij.util.EventDispatcher;
|
||||
import com.intellij.util.SmartList;
|
||||
import com.intellij.util.containers.SmartHashSet;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import com.intellij.xdebugger.*;
|
||||
import com.intellij.xdebugger.breakpoints.*;
|
||||
@@ -67,6 +68,7 @@ import com.intellij.xdebugger.impl.ui.XDebugSessionTab;
|
||||
import com.intellij.xdebugger.impl.ui.XDebuggerUIConstants;
|
||||
import com.intellij.xdebugger.stepping.XSmartStepIntoHandler;
|
||||
import com.intellij.xdebugger.stepping.XSmartStepIntoVariant;
|
||||
import gnu.trove.THashMap;
|
||||
import gnu.trove.THashSet;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -86,8 +88,8 @@ public class XDebugSessionImpl implements XDebugSession {
|
||||
false);
|
||||
private XDebugProcess myDebugProcess;
|
||||
private final Map<XBreakpoint<?>, CustomizedBreakpointPresentation> myRegisteredBreakpoints =
|
||||
new HashMap<XBreakpoint<?>, CustomizedBreakpointPresentation>();
|
||||
private final Set<XBreakpoint<?>> myInactiveSlaveBreakpoints = new HashSet<XBreakpoint<?>>();
|
||||
new THashMap<XBreakpoint<?>, CustomizedBreakpointPresentation>();
|
||||
private final Set<XBreakpoint<?>> myInactiveSlaveBreakpoints = new SmartHashSet<XBreakpoint<?>>();
|
||||
private boolean myBreakpointsMuted;
|
||||
private boolean myBreakpointsDisabled;
|
||||
private final XDebuggerManagerImpl myDebuggerManager;
|
||||
@@ -351,12 +353,9 @@ public class XDebugSessionImpl implements XDebugSession {
|
||||
handler.registerBreakpoint(b);
|
||||
}
|
||||
if (!register) {
|
||||
boolean removed = false;
|
||||
boolean removed;
|
||||
synchronized (myRegisteredBreakpoints) {
|
||||
if (myRegisteredBreakpoints.containsKey(b)) {
|
||||
myRegisteredBreakpoints.remove(b);
|
||||
removed = true;
|
||||
}
|
||||
removed = myRegisteredBreakpoints.remove(b) != null;
|
||||
}
|
||||
if (removed) {
|
||||
handler.unregisterBreakpoint(b, temporary);
|
||||
|
||||
Reference in New Issue
Block a user