[java-support] branch main updated: Set output type and default error return.

Scott Cantor cantor.2 at osu.edu
Thu Feb 25 15:12:09 UTC 2021


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

scantor pushed a commit to branch main
in repository java-support.

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

The following commit(s) were added to refs/heads/main by this push:
       new  a599b52   Set output type and default error return.
a599b52 is described below

commit a599b52427dc1fbc8b24ecf408763d7edd399cc9
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Feb 25 10:12:07 2021 -0500

    Set output type and default error return.
---
 .../shibboleth/utilities/java/support/logic/ScriptedBiPredicate.java  | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/java/net/shibboleth/utilities/java/support/logic/ScriptedBiPredicate.java b/src/main/java/net/shibboleth/utilities/java/support/logic/ScriptedBiPredicate.java
index e4ff913..c3a8b8e 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/logic/ScriptedBiPredicate.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/logic/ScriptedBiPredicate.java
@@ -64,6 +64,8 @@ public class ScriptedBiPredicate<T,U> extends AbstractScriptEvaluator implements
     protected ScriptedBiPredicate(@Nonnull @NotEmpty @ParameterName(name="theScript") final EvaluableScript theScript,
             @Nullable @NotEmpty @ParameterName(name="extraInfo") final String extraInfo) {
         super(theScript);
+        setOutputType(Boolean.class);
+        setReturnOnError(false);
         setLogPrefix("Scripted BiPredicate from " + extraInfo + ":");
     }
 
@@ -74,6 +76,8 @@ public class ScriptedBiPredicate<T,U> extends AbstractScriptEvaluator implements
      */
     protected ScriptedBiPredicate(@Nonnull @NotEmpty @ParameterName(name="theScript") final EvaluableScript theScript) {
         super(theScript);
+        setOutputType(Boolean.class);
+        setReturnOnError(false);
         setLogPrefix("Anonymous BiPredicate:");
     }
 

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


More information about the commits mailing list