Skip to content

Commit

Permalink
Fix style.
Browse files Browse the repository at this point in the history
  • Loading branch information
cstancu committed Feb 4, 2019
1 parent a5ae1e1 commit e0be0b2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private static void prepareSunEC() {
}

/** Get the list of configured providers. The SUN provider is returned by default. */
private List<Provider> getProviders(boolean enableAllSecurityServices) {
private static List<Provider> getProviders(boolean enableAllSecurityServices) {
if (enableAllSecurityServices) {
/* Parse and instantiate all providers. */
return Providers.getProviderList().providers();
Expand All @@ -143,7 +143,9 @@ private List<Provider> getProviders(boolean enableAllSecurityServices) {
* Get only the SUN provider. Avoids parsing the entire providers list and instantiating
* unused providers.
*/
return Collections.singletonList(Providers.getSunProvider());
Provider sunProvider = Providers.getSunProvider();
assert isSunProvider(sunProvider);
return Collections.singletonList(sunProvider);
}
}

Expand Down

0 comments on commit e0be0b2

Please sign in to comment.