--- a/src/java.base/share/classes/java/security/AlgorithmParameterGenerator.java Thu Dec 13 16:14:07 2018 +0100
+++ b/src/java.base/share/classes/java/security/AlgorithmParameterGenerator.java Thu Dec 13 15:31:05 2018 +0100
@@ -228,7 +228,7 @@
throws NoSuchAlgorithmException, NoSuchProviderException
{
Objects.requireNonNull(algorithm, "null algorithm name");
- if (provider == null || provider.length() == 0)
+ if (provider == null || provider.isEmpty())
throw new IllegalArgumentException("missing provider");
Object[] objs = Security.getImpl(algorithm,
"AlgorithmParameterGenerator",