Skip to content

Commit

Permalink
Remove AccessControlException, deprecated in Java 17 for removal (gwt…
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 authored Nov 7, 2024
1 parent 636db82 commit ba79762
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.security.AccessControlException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
Expand Down Expand Up @@ -331,14 +330,7 @@ private static void addAllClassPathEntries(TreeLogger logger, ResourceLoader loa
classPath.add(entry);
}
continue;
} catch (AccessControlException e) {
if (logger.isLoggable(TreeLogger.DEBUG)) {
logger.log(TreeLogger.DEBUG, "Skipping URL due to access restrictions: " + url);
}
continue;
} catch (URISyntaxException e) {
caught = e;
} catch (IOException e) {
} catch (URISyntaxException | IOException e) {
caught = e;
}
logger.log(TreeLogger.WARN, "Error processing classpath URL '" + url + "'", caught);
Expand Down

0 comments on commit ba79762

Please sign in to comment.