Removed useless parameter.
This commit is contained in:
+3
-4
@@ -277,7 +277,7 @@ public final class JavaClassResolver {
|
|||||||
|
|
||||||
PsiMethod samInterfaceMethod = MembersCache.getSamInterfaceMethod(psiClass);
|
PsiMethod samInterfaceMethod = MembersCache.getSamInterfaceMethod(psiClass);
|
||||||
if (samInterfaceMethod != null) {
|
if (samInterfaceMethod != null) {
|
||||||
SimpleFunctionDescriptor abstractMethod = resolveFunctionOfSamInterface(psiClass, samInterfaceMethod, classDescriptor);
|
SimpleFunctionDescriptor abstractMethod = resolveFunctionOfSamInterface(samInterfaceMethod, classDescriptor);
|
||||||
classDescriptor.setFunctionTypeForSamInterface(SingleAbstractMethodUtils.getFunctionTypeForAbstractMethod(abstractMethod));
|
classDescriptor.setFunctionTypeForSamInterface(SingleAbstractMethodUtils.getFunctionTypeForAbstractMethod(abstractMethod));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -286,14 +286,13 @@ public final class JavaClassResolver {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private SimpleFunctionDescriptor resolveFunctionOfSamInterface(
|
private SimpleFunctionDescriptor resolveFunctionOfSamInterface(
|
||||||
@NotNull PsiClass psiClass,
|
|
||||||
@NotNull PsiMethod samInterfaceMethod,
|
@NotNull PsiMethod samInterfaceMethod,
|
||||||
@NotNull ClassDescriptorFromJvmBytecode samInterface
|
@NotNull ClassDescriptorFromJvmBytecode samInterface
|
||||||
) {
|
) {
|
||||||
PsiClass methodContainer = samInterfaceMethod.getContainingClass();
|
PsiClass methodContainer = samInterfaceMethod.getContainingClass();
|
||||||
assert methodContainer != null : "method container is null for " + methodContainer;
|
assert methodContainer != null : "method container is null for " + samInterfaceMethod;
|
||||||
String containerQualifiedName = methodContainer.getQualifiedName();
|
String containerQualifiedName = methodContainer.getQualifiedName();
|
||||||
assert containerQualifiedName != null : "qualified name is null for " + psiClass;
|
assert containerQualifiedName != null : "qualified name is null for " + methodContainer;
|
||||||
|
|
||||||
if (DescriptorUtils.getFQName(samInterface).asString().equals(containerQualifiedName)) {
|
if (DescriptorUtils.getFQName(samInterface).asString().equals(containerQualifiedName)) {
|
||||||
SimpleFunctionDescriptor abstractMethod =
|
SimpleFunctionDescriptor abstractMethod =
|
||||||
|
|||||||
Reference in New Issue
Block a user