From 9fbe22a647a6949b96a5d5b4463f2a1897d5e84c Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Fri, 3 Feb 2017 16:44:45 +0300 Subject: [PATCH] afterAnyMatchAssignmentBooleanInverted: fixed after automatic simplification --- .../afterAnyMatchAssignmentBooleanInverted.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/afterAnyMatchAssignmentBooleanInverted.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/afterAnyMatchAssignmentBooleanInverted.java index 9c0ba70e710e..844218a4e941 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/afterAnyMatchAssignmentBooleanInverted.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/afterAnyMatchAssignmentBooleanInverted.java @@ -4,6 +4,6 @@ import java.util.List; public class Main { public void testAssignment(List data) { - boolean found = !data.stream().map(String::trim).anyMatch(trimmed -> !trimmed.isEmpty()); + boolean found = data.stream().map(String::trim).allMatch(trimmed -> trimmed.isEmpty()); } } \ No newline at end of file