From f609ba8dccc1e8bd7b7ff10f6b0145d5f4b5dcc8 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Mon, 28 Oct 2013 15:21:31 +0400 Subject: [PATCH] rollback to make BPs work in constructors --- .../ui/breakpoints/LineBreakpoint.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/LineBreakpoint.java b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/LineBreakpoint.java index 0df93d5e4afd..bc1e7ddd80c7 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/LineBreakpoint.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/LineBreakpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2013 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. @@ -210,17 +210,17 @@ public class LineBreakpoint extends BreakpointWithHighlighter { } protected boolean acceptLocation(DebugProcessImpl debugProcess, ReferenceType classType, Location loc) { - final String methodName = myMethodName; - if (methodName != null) { - // Consider: - // proc(()->{System.out.println("Task 1");}, ()->{System.out.println("Task 2");}); - // - // there will be 3 locations for this line: one corresponding to calling method, and two locations from - // the lambda expression implementation methods. - // Without additional filtering, breakpoint request will be set on each location, - // while we do not need to stop in lambda expressions here - return methodName.equals(loc.method().name()); - } +// final String methodName = myMethodName; +// if (methodName != null) { +// // Consider: +// // proc(()->{System.out.println("Task 1");}, ()->{System.out.println("Task 2");}); +// // +// // there will be 3 locations for this line: one corresponding to calling method, and two locations from +// // the lambda expression implementation methods. +// // Without additional filtering, breakpoint request will be set on each location, +// // while we do not need to stop in lambda expressions here +// return methodName.equals(loc.method().name()); +// } return true; }