Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -329,16 +329,16 @@ private CompletableFuture<List<Location>> collectLocations(List<ReferenceType> r
List<CompletableFuture<Location>> futures = new ArrayList<>();
for (ReferenceType refType : refTypes) {
if (async()) {
futures.add(AsyncJdwpUtils.supplyAsync(() -> findMethodLocaiton(refType, methodName, methodSiguature)));
futures.add(AsyncJdwpUtils.supplyAsync(() -> findMethodLocation(refType, methodName, methodSiguature)));
} else {
futures.add(CompletableFuture.completedFuture(findMethodLocaiton(refType, methodName, methodSiguature)));
futures.add(CompletableFuture.completedFuture(findMethodLocation(refType, methodName, methodSiguature)));
}
}

return AsyncJdwpUtils.all(futures);
}

private Location findMethodLocaiton(ReferenceType refType, String methodName, String methodSiguature) {
private Location findMethodLocation(ReferenceType refType, String methodName, String methodSiguature) {
List<Method> methods = refType.methods();
Location location = null;
for (Method method : methods) {
Expand Down