8072000: New compiler warning after JDK-8067139
authorattila
Fri, 30 Jan 2015 15:03:56 +0100
changeset 28784 a79ac84f2ea4
parent 28710 5b8db585a33c
child 28785 a503c972d4bd
8072000: New compiler warning after JDK-8067139 Reviewed-by: hannesw, sundar
nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/Lower.java
--- a/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/Lower.java	Wed Jul 05 20:17:33 2017 +0200
+++ b/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/Lower.java	Fri Jan 30 15:03:56 2015 +0100
@@ -326,6 +326,7 @@
         return addStatement(throwNode); //ThrowNodes are always terminal, marked as such in constructor
     }
 
+    @SuppressWarnings("unchecked")
     private static <T extends Node> T ensureUniqueNamesIn(final T node) {
         return (T)node.accept(new NodeVisitor<LexicalContext>(new LexicalContext()) {
             @Override