[java-identity-provider] branch master updated: IDP-1168 - Collapse duplicated scripted implementations

Scott Cantor cantor.2 at osu.edu
Tue May 2 22:35:07 EDT 2017


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

scantor pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=4c7cfc3d43b4adf8e8b2c0566a0d49c8092b1261

The following commit(s) were added to refs/heads/master by this push:
       new  4c7cfc3   IDP-1168 - Collapse duplicated scripted implementations
4c7cfc3 is described below

commit 4c7cfc3d43b4adf8e8b2c0566a0d49c8092b1261
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue May 2 22:35:05 2017 -0400

    IDP-1168 - Collapse duplicated scripted implementations
    
    https://issues.shibboleth.net/jira/browse/IDP-1168
    
    Fix up log prefix handling in ScriptedPredicate.
---
 .../main/java/net/shibboleth/idp/profile/logic/ScriptedPredicate.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/idp-profile-api/src/main/java/net/shibboleth/idp/profile/logic/ScriptedPredicate.java b/idp-profile-api/src/main/java/net/shibboleth/idp/profile/logic/ScriptedPredicate.java
index e40415f..54d9615 100644
--- a/idp-profile-api/src/main/java/net/shibboleth/idp/profile/logic/ScriptedPredicate.java
+++ b/idp-profile-api/src/main/java/net/shibboleth/idp/profile/logic/ScriptedPredicate.java
@@ -54,9 +54,10 @@ public class ScriptedPredicate extends AbstractScriptEvaluator implements Predic
      */
     public ScriptedPredicate(@Nonnull @NotEmpty @ParameterName(name="theScript") final EvaluableScript theScript,
             @Nullable @NotEmpty @ParameterName(name="extraInfo") final String extraInfo) {
-        super(theScript, extraInfo);
+        super(theScript);
         setOutputType(Boolean.class);
         setReturnOnError(false);
+        setLogPrefix("Scripted Predicate from " + extraInfo + ":");
     }
 
     /**
@@ -66,6 +67,7 @@ public class ScriptedPredicate extends AbstractScriptEvaluator implements Predic
      */
     public ScriptedPredicate(@Nonnull @NotEmpty @ParameterName(name="theScript") final EvaluableScript theScript) {
         super(theScript);
+        setLogPrefix("Anonymous Scripted Predicate:");
         setOutputType(Boolean.class);
         setReturnOnError(false);
     }

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


More information about the commits mailing list