From b5e72089d6416b1bd19086e190fdfbbba3453691 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Mon, 15 Jan 2024 10:25:04 -0500 Subject: [PATCH] update --- .../classes/openj9/internal/security/RestrictedSecurity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/closed/src/java.base/share/classes/openj9/internal/security/RestrictedSecurity.java b/closed/src/java.base/share/classes/openj9/internal/security/RestrictedSecurity.java index 972c0e72e61..100f1682c02 100644 --- a/closed/src/java.base/share/classes/openj9/internal/security/RestrictedSecurity.java +++ b/closed/src/java.base/share/classes/openj9/internal/security/RestrictedSecurity.java @@ -687,7 +687,7 @@ private void initProviders() { // Provider with argument (provider name + optional argument). providers.add(pNum - 1, providerName); - // Remove the provider's optional arguments if present. + // Remove the provider's optional arguments there are. pos = providerName.indexOf(' '); if (pos >= 0) { providerName = providerName.substring(0, pos); @@ -967,7 +967,7 @@ boolean isRestrictedProviderAllowed(String providerName) { debug.println("Checking the provider " + providerName + " in restricted security mode."); } - // Remove argument, e.g. -NSS-FIPS, if present. + // Remove argument, e.g. -NSS-FIPS, if there is. int pos = providerName.indexOf('-'); if (pos >= 0) { providerName = providerName.substring(0, pos);