diff --git a/java/debugger/impl/src/com/intellij/debugger/engine/requests/LocatableEventRequestor.java b/java/debugger/impl/src/com/intellij/debugger/engine/requests/LocatableEventRequestor.java index ed1d7af2e16f..55514cb10448 100644 --- a/java/debugger/impl/src/com/intellij/debugger/engine/requests/LocatableEventRequestor.java +++ b/java/debugger/impl/src/com/intellij/debugger/engine/requests/LocatableEventRequestor.java @@ -1,29 +1,16 @@ -/* - * Copyright 2000-2009 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.engine.requests; import com.intellij.debugger.engine.events.SuspendContextCommandImpl; import com.intellij.debugger.requests.Requestor; import com.sun.jdi.event.LocatableEvent; +import org.jetbrains.annotations.NotNull; public interface LocatableEventRequestor extends Requestor { /** * @returns true if request was hit by the event, false otherwise */ - boolean processLocatableEvent(SuspendContextCommandImpl action, LocatableEvent event) throws EventProcessingException; + boolean processLocatableEvent(@NotNull SuspendContextCommandImpl action, LocatableEvent event) throws EventProcessingException; /** * @return either DebuggerSettings.SUSPEND_NONE or DebuggerSettings.SUSPEND_ALL or DebuggerSettings.SUSPEND_THREAD diff --git a/java/debugger/impl/src/com/intellij/debugger/memory/tracking/ConstructorInstancesTracker.java b/java/debugger/impl/src/com/intellij/debugger/memory/tracking/ConstructorInstancesTracker.java index d67a9f7ebcc0..1e9fd3238bf1 100644 --- a/java/debugger/impl/src/com/intellij/debugger/memory/tracking/ConstructorInstancesTracker.java +++ b/java/debugger/impl/src/com/intellij/debugger/memory/tracking/ConstructorInstancesTracker.java @@ -1,4 +1,4 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.memory.tracking; import com.intellij.debugger.DebuggerManager; @@ -207,7 +207,7 @@ public class ConstructorInstancesTracker implements TrackerForNewInstances, Disp } @Override - public boolean processLocatableEvent(SuspendContextCommandImpl action, LocatableEvent event) { + public boolean processLocatableEvent(@NotNull SuspendContextCommandImpl action, LocatableEvent event) { if (myIsDeleted) { event.request().disable(); } diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/FilteredRequestorImpl.java b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/FilteredRequestorImpl.java index 289c87b65120..5aaad3fbf870 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/FilteredRequestorImpl.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/FilteredRequestorImpl.java @@ -1,18 +1,4 @@ -/* - * Copyright 2000-2016 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.ui.breakpoints; @@ -197,7 +183,7 @@ public class FilteredRequestorImpl implements JDOMExternalizable, FilteredReques } @Override - public boolean processLocatableEvent(SuspendContextCommandImpl action, LocatableEvent event) + public boolean processLocatableEvent(@NotNull SuspendContextCommandImpl action, LocatableEvent event) throws EventProcessingException { return false; } diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/InstrumentationTracker.java b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/InstrumentationTracker.java index 76058ceb7c48..4f67f8ddd181 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/InstrumentationTracker.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/InstrumentationTracker.java @@ -1,4 +1,4 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.ui.breakpoints; import com.intellij.debugger.engine.DebugProcessImpl; @@ -51,7 +51,7 @@ public class InstrumentationTracker { myRedefineBreakpoint = new InstrumentationMethodBreakpoint(debugProcess.getProject(), "sun.instrument.InstrumentationImpl", "redefineClasses") { @Override - public boolean processLocatableEvent(SuspendContextCommandImpl action, LocatableEvent event) { + public boolean processLocatableEvent(@NotNull SuspendContextCommandImpl action, LocatableEvent event) { try { Value value = ContainerUtil.getFirstItem(DebuggerUtilsEx.getArgumentValues(event.thread().frame(0))); if (value instanceof ArrayReference) { @@ -70,7 +70,7 @@ public class InstrumentationTracker { myRetransformBreakpoint = new InstrumentationMethodBreakpoint(debugProcess.getProject(), "sun.instrument.InstrumentationImpl", "retransformClasses") { @Override - public boolean processLocatableEvent(SuspendContextCommandImpl action, LocatableEvent event) { + public boolean processLocatableEvent(@NotNull SuspendContextCommandImpl action, LocatableEvent event) { try { Value value = ContainerUtil.getFirstItem(DebuggerUtilsEx.getArgumentValues(event.thread().frame(0))); if (value instanceof ArrayReference) {