[spring-extensions] 02/03: JSE-48 - Replace use of Spring NestedIOException with IOException
Ian Young
ian at iay.org.uk
Thu May 26 14:36:41 UTC 2022
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch dev/JPAR-186
in repository spring-extensions.
View the commit online:
http://git.shibboleth.net/view/?p=spring-extensions.git;a=commit;h=2abe17abde916b58d09ea26bb9cada6fba2f1f51
commit 2abe17abde916b58d09ea26bb9cada6fba2f1f51
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu May 12 16:34:01 2022 +0100
JSE-48 - Replace use of Spring NestedIOException with IOException
https://shibboleth.atlassian.net/browse/JSE-48
---
src/main/java/net/shibboleth/ext/spring/resource/HTTPResource.java | 3 +--
src/main/java/net/shibboleth/ext/spring/velocity/VelocityView.java | 6 +++---
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/main/java/net/shibboleth/ext/spring/resource/HTTPResource.java b/src/main/java/net/shibboleth/ext/spring/resource/HTTPResource.java
index b16bcab..1695dbd 100644
--- a/src/main/java/net/shibboleth/ext/spring/resource/HTTPResource.java
+++ b/src/main/java/net/shibboleth/ext/spring/resource/HTTPResource.java
@@ -54,7 +54,6 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.InitializingBean;
-import org.springframework.core.NestedIOException;
import org.springframework.core.io.Resource;
/**
@@ -236,7 +235,7 @@ public class HTTPResource extends AbstractIdentifiedInitializableComponent imple
try {
return resourceURL.toURI();
} catch (final URISyntaxException ex) {
- throw new NestedIOException("Invalid URI [" + resourceURL + "]", ex);
+ throw new IOException("Invalid URI [" + resourceURL + "]", ex);
}
}
diff --git a/src/main/java/net/shibboleth/ext/spring/velocity/VelocityView.java b/src/main/java/net/shibboleth/ext/spring/velocity/VelocityView.java
index 195dd03..1739238 100644
--- a/src/main/java/net/shibboleth/ext/spring/velocity/VelocityView.java
+++ b/src/main/java/net/shibboleth/ext/spring/velocity/VelocityView.java
@@ -17,6 +17,7 @@
package net.shibboleth.ext.spring.velocity;
+import java.io.IOException;
import java.util.Locale;
import java.util.Map;
@@ -33,7 +34,6 @@ import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactoryUtils;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.context.ApplicationContextException;
-import org.springframework.core.NestedIOException;
import org.springframework.web.servlet.view.AbstractTemplateView;
import org.springframework.web.util.NestedServletException;
@@ -205,7 +205,7 @@ public class VelocityView extends AbstractTemplateView {
*/
return false;
} catch (final Exception ex) {
- throw new NestedIOException(
+ throw new IOException(
"Could not load Velocity template for URL [" + getUrl() + "]", ex);
}
}
@@ -366,4 +366,4 @@ public class VelocityView extends AbstractTemplateView {
}
}
-}
\ No newline at end of file
+}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list