From e8582863dd429b07a2ed687caa5e605610abca82 Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Wed, 10 Oct 2018 15:01:25 +0200 Subject: [PATCH] property tests: ignore replace throws with general exception as it breaks the catch clauses with specific exceptions --- .../com/intellij/java/propertyBased/JavaIntentionPolicy.java | 4 +++- 1 file changed, 3 insertions(+), 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 26e09d5cab03..ea2f8cdb6aff 100644 --- a/java/java-tests/testSrc/com/intellij/java/propertyBased/JavaIntentionPolicy.java +++ b/java/java-tests/testSrc/com/intellij/java/propertyBased/JavaIntentionPolicy.java @@ -164,7 +164,9 @@ class JavaParenthesesPolicy extends JavaIntentionPolicy { familyName.equals("Extract If Condition") || // Cutting the message at different points is possible like // "Simplify 'foo || bar || baz || ...' to false" and "Simplify 'foo || (bar) || baz ...' to false" - familyName.equals("Simplify boolean expression"); + familyName.equals("Simplify boolean expression") || + //may break catches with explicit exceptions + familyName.equals("Replace Exceptions in Throws Clause with Single More General Exception"); } @NotNull