From 4423742185967ba4b5bb4ff2af5c37e40db83d19 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Wed, 10 Oct 2012 13:16:09 +0200 Subject: [PATCH] simplify code --- .../intellij/debugger/engine/PositionManagerImpl.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/engine/PositionManagerImpl.java b/java/debugger/impl/src/com/intellij/debugger/engine/PositionManagerImpl.java index 8d4638c3fc09..3b31204a0c8e 100644 --- a/java/debugger/impl/src/com/intellij/debugger/engine/PositionManagerImpl.java +++ b/java/debugger/impl/src/com/intellij/debugger/engine/PositionManagerImpl.java @@ -61,16 +61,11 @@ public class PositionManagerImpl implements PositionManager { @NotNull public List locationsOfLine(ReferenceType type, SourcePosition position) throws NoDataException { try { - int line = position.getLine() + 1; - List locs = (getDebugProcess().getVirtualMachineProxy().versionHigher("1.4") - ? type.locationsOfLine(DebugProcessImpl.JAVA_STRATUM, null, line) : type.locationsOfLine(line)); - if (locs.size() > 0) { - return locs; - } + final int line = position.getLine() + 1; + return type.locationsOfLine(DebugProcess.JAVA_STRATUM, null, line); } catch (AbsentInformationException ignored) { } - return Collections.emptyList(); }