getRawLocations — we should return ordered (by line&column) list (because currently... clion/140.1549
authorVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Wed, 7 Jan 2015 08:38:52 +0000 (09:38 +0100)
committerVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Wed, 7 Jan 2015 09:18:53 +0000 (10:18 +0100)
platform/script-debugger/backend/src/org/jetbrains/debugger/BreakpointManager.java
platform/script-debugger/backend/src/org/jetbrains/debugger/BreakpointManagerBase.java

index be93074932532dfc345fcf7899cc8a8fe47ae10f..24cea6aae19c3eda8dde89770a8f3a0c62c7c6e7 100644 (file)
@@ -7,8 +7,10 @@ import org.jetbrains.concurrency.Promise;
 import java.util.EventListener;
 
 public interface BreakpointManager {
+  @NotNull
   Breakpoint setBreakpoint(@NotNull BreakpointTarget target, int line, int column, @Nullable String condition, int ignoreCount, boolean enabled);
 
+  @NotNull
   Promise<Void> remove(@NotNull Breakpoint breakpoint);
 
   @Nullable
index bf5c19e392673b1ecea3fcffd67235cfd03a9c30..87d3742044391a7493bf752dff85591dd3c90897 100644 (file)
@@ -60,6 +60,7 @@ public abstract class BreakpointManagerBase<T extends BreakpointBase<?>> impleme
 
   protected abstract Promise<Breakpoint> doSetBreakpoint(@NotNull BreakpointTarget target, @NotNull T breakpoint);
 
+  @NotNull
   @Override
   public Breakpoint setBreakpoint(@NotNull final BreakpointTarget target, int line, int column, @Nullable String condition, int ignoreCount, boolean enabled) {
     final T breakpoint = createBreakpoint(target, line, column, condition, ignoreCount, enabled);
@@ -81,6 +82,7 @@ public abstract class BreakpointManagerBase<T extends BreakpointBase<?>> impleme
     return breakpoint;
   }
 
+  @NotNull
   @Override
   public Promise<Void> remove(@NotNull Breakpoint breakpoint) {
     @SuppressWarnings("unchecked")
@@ -131,4 +133,10 @@ public abstract class BreakpointManagerBase<T extends BreakpointBase<?>> impleme
   public FunctionSupport getFunctionSupport() {
     return null;
   }
+
+  @Nullable
+  @Override
+  public ScriptRegExpSupport getScriptRegExpSupport() {
+    return null;
+  }
 }
\ No newline at end of file