changeset 17118:3e92641a337d

8177153: LambdaMetafactory has default constructor Reviewed-by: psandoz Contributed-by: ron.pressler@oracle.com
author psandoz
date Tue, 09 May 2017 15:04:46 -0700
parents 177436a54ca1
children 2c7616c8b7d8
files src/java.base/share/classes/java/lang/invoke/LambdaMetafactory.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/invoke/LambdaMetafactory.java	Tue May 09 10:34:13 2017 -0700
+++ b/src/java.base/share/classes/java/lang/invoke/LambdaMetafactory.java	Tue May 09 15:04:46 2017 -0700
@@ -213,7 +213,9 @@
  * methods.
  * @since 1.8
  */
-public class LambdaMetafactory {
+public final class LambdaMetafactory {
+
+    private LambdaMetafactory() {}
 
     /** Flag for alternate metafactories indicating the lambda object
      * must be serializable */