contracts

This commit is contained in:
Anna.Kozlova
2016-04-08 18:44:25 +02:00
parent 9150e6fd4a
commit 216d319f84
@@ -60,6 +60,7 @@ public class LambdaUtil {
return null;
}
@Contract("null -> null")
@Nullable
public static PsiMethod getFunctionalInterfaceMethod(@Nullable PsiType functionalInterfaceType) {
return getFunctionalInterfaceMethod(PsiUtil.resolveGenericsClassInType(functionalInterfaceType));
@@ -78,6 +79,7 @@ public class LambdaUtil {
return getFunctionalInterfaceMethod(result.getElement());
}
@Contract("null -> null")
@Nullable
public static PsiMethod getFunctionalInterfaceMethod(PsiClass aClass) {
final MethodSignature methodSignature = getFunction(aClass);