mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
IDEA-CR-13662 Print lambda body if BoolUtils.getNegated() failed
This commit is contained in:
+1
-1
@@ -913,7 +913,7 @@ public class StreamApiMigrationInspection extends BaseJavaBatchLocalInspectionTo
|
||||
PsiElement lambdaBody = lambda.getBody();
|
||||
if(lambdaBody instanceof PsiExpression && BoolUtils.isNegation((PsiExpression)lambdaBody)) {
|
||||
PsiExpression negated = BoolUtils.getNegated((PsiExpression)lambdaBody);
|
||||
LOG.assertTrue(negated != null);
|
||||
LOG.assertTrue(negated != null, lambdaBody.getText());
|
||||
String methodReferenceText = LambdaCanBeMethodReferenceInspection
|
||||
.convertToMethodReference(negated, lambda.getParameterList().getParameters(), lambda.getFunctionalInterfaceType(), lambda);
|
||||
if(methodReferenceText != null) {
|
||||
|
||||
Reference in New Issue
Block a user