Skip to content

Commit eb22a79

Browse files
committed
Rename local variable, the List not only contains contracts of super interfaces
1 parent 0eef2a0 commit eb22a79

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,8 +2364,8 @@ public void detectWrapperResource() {
23642364
continue;
23652365
if (!method.isValidBinding())
23662366
throw new InvalidBindingException("Not a functional interface"); //$NON-NLS-1$
2367-
List<MethodBinding> superInterfaceContractsOfSelector = contractsBySelector.computeIfAbsent(String.valueOf(method.selector), key -> new ArrayList<>());
2368-
Iterator<MethodBinding> iterator = superInterfaceContractsOfSelector.iterator();
2367+
List<MethodBinding> contractsOfSelector = contractsBySelector.computeIfAbsent(String.valueOf(method.selector), key -> new ArrayList<>());
2368+
Iterator<MethodBinding> iterator = contractsOfSelector.iterator();
23692369

23702370
// Does 'method' override any super interface method?
23712371
while (iterator.hasNext()) {
@@ -2380,7 +2380,7 @@ public void detectWrapperResource() {
23802380
if(environment.globalOptions.isAnnotationBasedNullAnalysisEnabled) {
23812381
ImplicitNullAnnotationVerifier.ensureNullnessIsKnown(method, scope);
23822382
}
2383-
superInterfaceContractsOfSelector.add(method);
2383+
contractsOfSelector.add(method);
23842384
}
23852385
}
23862386

0 commit comments

Comments
 (0)