src/java.base/share/classes/sun/security/provider/DSA.java
changeset 51508 f99640a44d75
parent 51216 e429a304c97d
child 51986 c1db377f6300
--- a/src/java.base/share/classes/sun/security/provider/DSA.java	Thu Aug 23 09:35:09 2018 -0700
+++ b/src/java.base/share/classes/sun/security/provider/DSA.java	Thu Aug 23 09:36:13 2018 -0700
@@ -152,7 +152,7 @@
 
         // check key size against hash output size for signing
         // skip this check for verification to minimize impact on existing apps
-        if (md.getAlgorithm() != "NullDigest20") {
+        if (!"NullDigest20".equals(md.getAlgorithm())) {
             checkKey(params, md.getDigestLength()*8, md.getAlgorithm());
         }