src/java.base/share/classes/java/security/Policy.java
changeset 53018 8bf9268df0e2
parent 47216 71c04702a3d5
child 57950 4612a3cfb927
child 58678 9cf78a70fa4f
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
   454                                 Policy.Parameters params,
   454                                 Policy.Parameters params,
   455                                 String provider)
   455                                 String provider)
   456                 throws NoSuchProviderException, NoSuchAlgorithmException {
   456                 throws NoSuchProviderException, NoSuchAlgorithmException {
   457 
   457 
   458         Objects.requireNonNull(type, "null type name");
   458         Objects.requireNonNull(type, "null type name");
   459         if (provider == null || provider.length() == 0) {
   459         if (provider == null || provider.isEmpty()) {
   460             throw new IllegalArgumentException("missing provider");
   460             throw new IllegalArgumentException("missing provider");
   461         }
   461         }
   462 
   462 
   463         checkPermission(type);
   463         checkPermission(type);
   464         try {
   464         try {