mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
new overload resolution: void value compatibility to reject improperly shaped implicitly typed lambdas
This commit is contained in:
@@ -1108,8 +1108,11 @@ public final class PsiUtil extends PsiUtilCore {
|
||||
}
|
||||
|
||||
public static PsiReturnStatement[] findReturnStatements(PsiMethod method) {
|
||||
return findReturnStatements(method.getBody());
|
||||
}
|
||||
|
||||
public static PsiReturnStatement[] findReturnStatements(PsiCodeBlock body) {
|
||||
ArrayList<PsiReturnStatement> vector = new ArrayList<PsiReturnStatement>();
|
||||
PsiCodeBlock body = method.getBody();
|
||||
if (body != null) {
|
||||
addReturnStatements(vector, body);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user