changeset 1175:ceed654a29a4

8072000: New compiler warning after JDK-8067139 Reviewed-by: hannesw, sundar
author attila
date Fri, 30 Jan 2015 15:03:56 +0100
parents 2ae58b5f05f8
children 8e86c58cbb00
files src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/Lower.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/Lower.java	Thu Jan 29 15:36:29 2015 -0800
+++ b/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