src/java.base/share/classes/sun/security/provider/DSAKeyPairGenerator.java
changeset 51438 6ca468ea3564
parent 47421 f9e03aef3a49
--- a/src/java.base/share/classes/sun/security/provider/DSAKeyPairGenerator.java	Fri Aug 17 13:37:01 2018 -0700
+++ b/src/java.base/share/classes/sun/security/provider/DSAKeyPairGenerator.java	Fri Aug 17 22:20:47 2018 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -166,11 +166,7 @@
             // See the comments in DSAKeyFactory, 4532506, and 6232513.
 
             DSAPublicKey pub;
-            if (DSAKeyFactory.SERIAL_INTEROP) {
-                pub = new DSAPublicKey(y, p, q, g);
-            } else {
-                pub = new DSAPublicKeyImpl(y, p, q, g);
-            }
+            pub = new DSAPublicKeyImpl(y, p, q, g);
             DSAPrivateKey priv = new DSAPrivateKey(x, p, q, g);
 
             KeyPair pair = new KeyPair(pub, priv);