This is an automated email from the ASF dual-hosted git repository.
buhhunyx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push:
new 1e3eb7b cxf-rt-frontend-jaxrs: define IOException in ResourceUtils
1e3eb7b is described below
commit 1e3eb7b3edf841d00a284d891b3cee76b64f4b89
Author: Alexey Markevich <[email protected]>
AuthorDate: Thu Dec 5 17:39:41 2019 +0300
cxf-rt-frontend-jaxrs: define IOException in ResourceUtils
---
.../src/main/java/org/apache/cxf/jaxrs/utils/ResourceUtils.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ResourceUtils.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ResourceUtils.java
index 2671989..471fa85 100644
---
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ResourceUtils.java
+++
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ResourceUtils.java
@@ -20,6 +20,7 @@
package org.apache.cxf.jaxrs.utils;
import java.io.File;
+import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.annotation.Annotation;
@@ -559,12 +560,12 @@ public final class ResourceUtils {
return null;
}
- public static InputStream getResourceStream(String loc, Bus bus) throws
Exception {
+ public static InputStream getResourceStream(String loc, Bus bus) throws
IOException {
URL url = getResourceURL(loc, bus);
return url == null ? null : url.openStream();
}
- public static URL getResourceURL(String loc, Bus bus) throws Exception {
+ public static URL getResourceURL(String loc, Bus bus) throws IOException {
URL url = null;
if (loc.startsWith(CLASSPATH_PREFIX)) {
String path = loc.substring(CLASSPATH_PREFIX.length());
@@ -609,7 +610,7 @@ public final class ResourceUtils {
return null;
}
- public static Properties loadProperties(String propertiesLocation, Bus
bus) throws Exception {
+ public static Properties loadProperties(String propertiesLocation, Bus
bus) throws IOException {
Properties props = new Properties();
try (InputStream is = getResourceStream(propertiesLocation, bus)) {
props.load(is);