Seems OK for 7 to me (I am not a capital-R reviewer, though).
An alternative might be to skip all unchecked warnings while checking castability for the purposes of instanceof.
Jan On 02/04/2014 03:19 PM, Vicente-Arturo Romero-Zaldivar wrote:
Hello, Please review this patch, to eliminate a spurious warning generated by the compiler for the instanceof operator. The webrev is here: http://cr.openjdk.java.net/~vromero/8033294/webrev.01/ The bug report is here: https://bugs.openjdk.java.net/browse/JDK-8033294 Thanks, Vicente