mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
redundant lambda code block: do not suggest change void/value compatibility
This commit is contained in:
@@ -477,6 +477,16 @@ public class LambdaUtil {
|
||||
return true;
|
||||
}
|
||||
|
||||
//JLS 14.8 Expression Statements
|
||||
public static boolean isExpressionStatementExpression(PsiElement body) {
|
||||
return body instanceof PsiAssignmentExpression ||
|
||||
body instanceof PsiPrefixExpression &&
|
||||
(((PsiPrefixExpression)body).getOperationTokenType() == JavaTokenType.PLUSPLUS ||
|
||||
((PsiPrefixExpression)body).getOperationTokenType() == JavaTokenType.MINUSMINUS) ||
|
||||
body instanceof PsiPostfixExpression ||
|
||||
body instanceof PsiCallExpression;
|
||||
}
|
||||
|
||||
public static class TypeParamsChecker extends PsiTypeVisitor<Boolean> {
|
||||
private PsiMethod myMethod;
|
||||
private final PsiClass myClass;
|
||||
|
||||
Reference in New Issue
Block a user