cleanup: use generic type

GitOrigin-RevId: 14f2edb71f92ede14856bba639a10682fc98ef89
This commit is contained in:
Egor Ushakov
2019-09-26 13:06:20 +00:00
committed by intellij-monorepo-bot
parent 8a52b8220b
commit ed037f6922
4 changed files with 5 additions and 5 deletions
@@ -25,7 +25,7 @@ public class SyntheticMethodBreakpoint extends WildcardMethodBreakpoint {
}
@Override
public StreamEx matchingMethods(StreamEx<Method> methods, DebugProcessImpl debugProcess) {
public StreamEx<Method> matchingMethods(StreamEx<Method> methods, DebugProcessImpl debugProcess) {
String methodName = getMethodName();
return methods
.filter(m -> Comparing.equal(methodName, m.name()) && (mySignature == null || Comparing.equal(mySignature, m.signature())))
@@ -520,7 +520,7 @@ public class MethodBreakpoint extends BreakpointWithHighlighter<JavaMethodBreakp
}
@Override
public StreamEx matchingMethods(StreamEx<Method> methods, DebugProcessImpl debugProcess) {
public StreamEx<Method> matchingMethods(StreamEx<Method> methods, DebugProcessImpl debugProcess) {
try {
String methodName = getMethodName();
String signature = mySignature != null ? mySignature.getName(debugProcess) : null;
@@ -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;
@@ -20,7 +20,7 @@ public interface MethodBreakpointBase extends FilteredRequestor {
boolean isWatchEntry();
boolean isWatchExit();
StreamEx matchingMethods(StreamEx<Method> methods, DebugProcessImpl debugProcess);
StreamEx<Method> matchingMethods(StreamEx<Method> methods, DebugProcessImpl debugProcess);
void disableEmulation();
@@ -230,7 +230,7 @@ public class WildcardMethodBreakpoint extends Breakpoint<JavaMethodBreakpointPro
}
@Override
public StreamEx matchingMethods(StreamEx<Method> methods, DebugProcessImpl debugProcess) {
public StreamEx<Method> matchingMethods(StreamEx<Method> methods, DebugProcessImpl debugProcess) {
return methods.filter(this::matchesMethod);
}