[10] RFR 8187254 Rearrange private MethodType constructors (original) (raw)

Paul Sandoz paul.sandoz at oracle.com
Mon Dec 11 22:02:06 UTC 2017


Hi,

Please review this small fix to collapse the two private constructors of MethodType into one. This consolidates all the copying/validation logic into the factory method makeImpl.

Thanks, Paul.

diff -r 77866b9147be src/java.base/share/classes/java/lang/invoke/MethodType.java --- a/src/java.base/share/classes/java/lang/invoke/MethodType.java Mon Dec 11 10:50:17 2017 -0800 +++ b/src/java.base/share/classes/java/lang/invoke/MethodType.java Mon Dec 11 14:00:09 2017 -0800 @@ -105,23 +105,10 @@ private @Stable String methodDescriptor; // cache for toMethodDescriptorString

 /**


More information about the core-libs-dev mailing list