java redundant cast: check conditional poly expression after cast is removed (IDEA-251055)

GitOrigin-RevId: 32c2f18de0725a517f1ceb746edc8fa468b6fafa
This commit is contained in:
Anna Kozlova authored and intellij-monorepo-bot committed 2020-09-21 20:35:18 +00:00
1 parent 08000a2a06
commit cdbae12245
4 files changed
+17 -2

No files matched your search

@@ -0,0 +1,5 @@
class MyTest {
private static Object foo(String s, boolean b) {
return b ? (Object) Double.parseDouble(s) : (Object) Long.parseLong(s);
}
}