codeconsole commented on code in PR #15722:
URL: https://github.com/apache/grails-core/pull/15722#discussion_r3476202118


##########
grails-shell-cli/src/main/groovy/org/grails/cli/util/ResourceUtils.java:
##########
@@ -159,7 +160,7 @@ public Resource getResource(String location) {
             }
             try {
                 // Try to parse the location as a URL...
-                URL url = new URL(location);
+                URL url = URI.create(location).toURL();
                 return new UrlResource(url);
             }
             catch (MalformedURLException ex) {

Review Comment:
   because of the switch to URI.create: 
   ```
   catch (MalformedURLException | IllegalArgumentException ex) {
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to