8224629: Unnecessary cast in LambdaToMethod
authorcushon
Wed, 22 May 2019 15:30:11 -0700
changeset 55137 c40c3e5d7c7a
parent 55136 a3596ce8de19
child 55138 b564f266dda0
8224629: Unnecessary cast in LambdaToMethod Reviewed-by: vromero Contributed-by: Alan Malloy <amalloy@google.com>
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
--- 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