redundant cast: check binary comparison assignability (IDEA-209944)

GitOrigin-RevId: 4276128fb33224de60afc7661e478ca172205f51
This commit is contained in:
Anna Kozlova
2019-04-28 19:24:39 +03:00
committed by intellij-monorepo-bot
parent 2ceebfedf1
commit 7f603ae6b1
3 changed files with 18 additions and 0 deletions
@@ -0,0 +1,9 @@
class MyClass {
public <O> Class<O> getValueClass() {
return null;
}
public boolean isBooleanClass() {
return (Class<?>) getValueClass() == Boolean.class;
}
}