diff --git a/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/Breakpoint.java b/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/Breakpoint.java index d8316c2e..3a1fa19f 100644 --- a/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/Breakpoint.java +++ b/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/Breakpoint.java @@ -329,16 +329,16 @@ private CompletableFuture> collectLocations(List r List> 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 methods = refType.methods(); Location location = null; for (Method method : methods) {