From f9a05d5e8306ff3b2c5b136c1c1b6d3adf9b3b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Thu, 30 Jan 2025 17:08:07 +0900 Subject: [PATCH] fix: define IllegalArgumentException not InvalidArgumentException --- framework/src/org/apache/cordova/CordovaResourceApi.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/src/org/apache/cordova/CordovaResourceApi.java b/framework/src/org/apache/cordova/CordovaResourceApi.java index 38edef246..1d6fd6f22 100644 --- a/framework/src/org/apache/cordova/CordovaResourceApi.java +++ b/framework/src/org/apache/cordova/CordovaResourceApi.java @@ -239,7 +239,7 @@ private String getMimeTypeFromPath(String path) { * Opens a stream to the given URI, also providing the MIME type & length. * * @return Never returns null. - * @throws InvalidArgumentException For relative URIs. Relative URIs should be resolved before + * @throws IllegalArgumentException For relative URIs. Relative URIs should be resolved before * being passed into this function. * @throws IOException If the URI cannot be opened. * @throws IllegalStateException If called on a foreground thread. @@ -252,7 +252,7 @@ public OpenForReadResult openForRead(Uri uri) throws IOException { * Opens a stream to the given URI, also providing the MIME type & length. * * @return Never returns null. - * @throws InvalidArgumentException For relative URIs. Relative URIs should be resolved before + * @throws IllegalArgumentException For relative URIs. Relative URIs should be resolved before * being passed into this function. * @throws IOException If the URI cannot be opened. * @throws IllegalStateException If called on a foreground thread and skipThreadCheck is false. @@ -338,7 +338,7 @@ public OutputStream openOutputStream(Uri uri) throws IOException { * Opens a stream to the given URI. * * @return Never returns null. - * @throws InvalidArgumentException For relative URIs. Relative URIs should be resolved before + * @throws IllegalArgumentException For relative URIs. Relative URIs should be resolved before * being passed into this function. * @throws IOException If the URI cannot be opened. */