--- old/src/java.base/share/classes/javax/crypto/Cipher.java 2018-12-06 17:52:56.585397051 -0500 +++ new/src/java.base/share/classes/javax/crypto/Cipher.java 2018-12-06 17:52:56.417396218 -0500 @@ -531,7 +531,7 @@ public static final Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException { - if ((transformation == null) || transformation.equals("")) { + if ((transformation == null) || transformation.isEmpty()) { throw new NoSuchAlgorithmException("Null or empty transformation"); } List transforms = getTransforms(transformation); @@ -631,7 +631,7 @@ throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException { - if ((transformation == null) || transformation.equals("")) { + if ((transformation == null) || transformation.isEmpty()) { throw new NoSuchAlgorithmException("Null or empty transformation"); } if ((provider == null) || (provider.length() == 0)) { @@ -698,7 +698,7 @@ Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException { - if ((transformation == null) || transformation.equals("")) { + if ((transformation == null) || transformation.isEmpty()) { throw new NoSuchAlgorithmException("Null or empty transformation"); } if (provider == null) { @@ -2840,4 +2840,4 @@ sb.append(", algorithm from: ").append(getProviderName()); return sb.toString(); } -} \ No newline at end of file +}