From 8ca5217e77ad81a059c32e8fb9601824b97ba317 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Wed, 24 Oct 2018 15:14:11 +0700 Subject: [PATCH] JavaIntentionPolicy#mayBreakCompilation: remove "Replace with 'while'" (IDEA-195157 is fixed), add Suspicious toArray (IDEA-200859) --- .../com/intellij/java/propertyBased/JavaIntentionPolicy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-tests/testSrc/com/intellij/java/propertyBased/JavaIntentionPolicy.java b/java/java-tests/testSrc/com/intellij/java/propertyBased/JavaIntentionPolicy.java index 11c38f5464de..fb927da66441 100644 --- a/java/java-tests/testSrc/com/intellij/java/propertyBased/JavaIntentionPolicy.java +++ b/java/java-tests/testSrc/com/intellij/java/propertyBased/JavaIntentionPolicy.java @@ -75,7 +75,7 @@ class JavaIntentionPolicy extends IntentionPolicy { actionText.equals("Split into declaration and initialization") || // TODO: remove when IDEA-179081 is fixed //may break catches with explicit exceptions actionText.matches("Replace with throws .*") || - actionText.equals("Replace with 'while'"); // TODO: remove when IDEA-195157 is fixed + actionText.matches("Replace with '(new .+\\[]|.+\\[]::new)'"); // Suspicious toArray may introduce compilation error } }