changeset 56519:c40c3e5d7c7a

8224629: Unnecessary cast in LambdaToMethod Reviewed-by: vromero Contributed-by: Alan Malloy <amalloy@google.com>
author cushon
date Wed, 22 May 2019 15:30:11 -0700
parents a3596ce8de19
children b564f266dda0
files src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java	Fri May 31 13:49:35 2019 -0700
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java	Wed May 22 15:30:11 2019 -0700
@@ -1093,7 +1093,7 @@
         MethodSymbol samSym = (MethodSymbol) types.findDescriptorSymbol(tree.target.tsym);
         List<LoadableConstant> staticArgs = List.of(
                 typeToMethodType(samSym.type),
-                ((MethodSymbol)refSym).asHandle(),
+                refSym.asHandle(),
                 typeToMethodType(tree.getDescriptorType(types)));
 
         //computed indy arg types