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

GitOrigin-RevId: 32c2f18de0725a517f1ceb746edc8fa468b6fafa
This commit is contained in:
Anna Kozlova
2020-09-21 21:15:42 +02:00
committed by intellij-monorepo-bot
parent 08000a2a06
commit cdbae12245
4 changed files with 17 additions and 2 deletions

View File

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