[java]: surround with: prefer same simple names for catch parameters (IDEA-269830)

GitOrigin-RevId: 9f8b5ced2ec29cbf0f23ccfdf18d4888a55e440d
This commit is contained in:
Anna Kozlova
2021-05-24 22:12:58 +02:00
committed by intellij-monorepo-bot
parent 5ab478e48e
commit 5a42eae302
4 changed files with 7 additions and 7 deletions

View File

@@ -8,8 +8,8 @@ public class ExTest {
String[] a = new String[0];
try {
a = new String[]{maybeThrow("")};
} catch (Ex ex) {
ex.printStackTrace();
} catch (Ex e) {
e.printStackTrace();
}
System.out.println(a);
}

View File

@@ -8,8 +8,8 @@ public class ExTest {
Block<String> b = (t) -> {
try {
return ExTest.maybeThrow(t);
} catch (Ex ex) {
<selection>ex.printStackTrace();</selection>
} catch (Ex e) {
<selection>e.printStackTrace();</selection>
}
};
}

View File

@@ -8,8 +8,8 @@ public class ExTest {
Block<String> b = (t) -> {
try {
ExTest.maybeThrow(t);
} catch (Ex ex) {
ex.printStackTrace();
} catch (Ex e) {
e.printStackTrace();
}
};
}