From ba797621302fd4f2598a54870f541de9b184296a Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Thu, 7 Nov 2024 09:22:15 -0600 Subject: [PATCH] Remove AccessControlException, deprecated in Java 17 for removal (#10012) --- .../gwt/dev/resource/impl/ResourceOracleImpl.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java b/dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java index 0790601f610..1c5171321ca 100644 --- a/dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java +++ b/dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java @@ -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; @@ -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);