mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
fix(URLUtil): correct spelling of "occurred" in exception messages
This commit is contained in:
@@ -270,7 +270,7 @@ public class URLUtil extends URLEncodeUtil {
|
||||
try {
|
||||
return file.toURI().toURL();
|
||||
} catch (MalformedURLException e) {
|
||||
throw new UtilException(e, "Error occured when get URL!");
|
||||
throw new UtilException(e, "Error occurred when get URL!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -288,7 +288,7 @@ public class URLUtil extends URLEncodeUtil {
|
||||
urls[i] = files[i].toURI().toURL();
|
||||
}
|
||||
} catch (MalformedURLException e) {
|
||||
throw new UtilException(e, "Error occured when get URL!");
|
||||
throw new UtilException(e, "Error occurred when get URL!");
|
||||
}
|
||||
|
||||
return urls;
|
||||
|
||||
Reference in New Issue
Block a user