[java-support] 03/03: IDP-1595 Resource construction can throw an IOException

Rod Widdowson rdw at steadingsoftware.com
Tue Jun 9 09:52:13 UTC 2020


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository java-support.

View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=d0c1ac005127070e3470925211c5c1808a9817bc

commit d0c1ac005127070e3470925211c5c1808a9817bc
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Thu May 14 10:57:29 2020 +0100

    IDP-1595 Resource construction can throw an IOException
    
    https://issues.shibboleth.net/jira/browse/IDP-1595
---
 .../utilities/java/support/plugin/PluginDescription.java          | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main/java/net/shibboleth/utilities/java/support/plugin/PluginDescription.java b/src/main/java/net/shibboleth/utilities/java/support/plugin/PluginDescription.java
index fb3dc18..7641346 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/plugin/PluginDescription.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/plugin/PluginDescription.java
@@ -17,6 +17,7 @@
 
 package net.shibboleth.utilities.java.support.plugin;
 
+import java.io.IOException;
 import java.nio.file.Path;
 import java.util.Collections;
 import java.util.List;
@@ -78,18 +79,19 @@ public abstract class PluginDescription {
      * plugin id appended. Sub directories are created if needed</p>
      *
      * @return The list.
+     * @throws IOException if the resource construction failed.
      */
-    @Nonnull public List<Pair<Resource, Path>> getExternalFilePathsToCopy() {
+    @Nonnull public List<Pair<Resource, Path>> getExternalFilePathsToCopy() throws IOException {
         return Collections.emptyList();
     }
 
     /** Return the places to look for updates for this plugin package.
      * The format of the paths below this point is fixed.
      * 
-     * 
      * @return At least one Resource.
+     * @throws IOException if the resource construction failed.
      */
-    @Nonnull @NotEmpty @NonnullElements public abstract List<Resource> getUpdateResources();
+    @Nonnull @NotEmpty @NonnullElements public abstract List<Resource> getUpdateResources() throws IOException;
     
     /** Return this properties that require list merging.  
      * 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list