[java-identity-provider] branch master updated: Defensive change against PRC type cast.

Scott Cantor cantor.2 at osu.edu
Wed Jan 10 17:08:46 EST 2018


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=a2bef69b710659e61692b4d335766f4bb24ccfa0

The following commit(s) were added to refs/heads/master by this push:
       new  a2bef69   Defensive change against PRC type cast.
a2bef69 is described below

commit a2bef69b710659e61692b4d335766f4bb24ccfa0
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Jan 10 17:08:44 2018 -0500

    Defensive change against PRC type cast.
---
 .../idp/attribute/resolver/impl/AttributeResolverImpl.java           | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java b/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java
index 2a54f23..6f54370 100644
--- a/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java
+++ b/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java
@@ -57,6 +57,7 @@ import net.shibboleth.utilities.java.support.component.ComponentInitializationEx
 import net.shibboleth.utilities.java.support.component.ComponentSupport;
 import net.shibboleth.utilities.java.support.logic.Constraint;
 
+import org.opensaml.messaging.context.BaseContext;
 import org.opensaml.messaging.context.navigate.ParentContextLookup;
 import org.opensaml.profile.context.MetricContext;
 import org.opensaml.profile.context.ProfileRequestContext;
@@ -599,7 +600,7 @@ public class AttributeResolverImpl extends AbstractServiceableComponent<Attribut
      * @return true iff the {@link #stopTimer(AttributeResolutionContext)} method needs to be called
      */
     private boolean startTimer(@Nonnull final AttributeResolutionContext resolutionContext) {
-        final ProfileRequestContext prc = profileContextStrategy.apply(resolutionContext);
+        final BaseContext prc = profileContextStrategy.apply(resolutionContext);
         if (prc != null) {
             final MetricContext timerCtx = prc.getSubcontext(MetricContext.class);
             if (timerCtx != null) {
@@ -616,7 +617,7 @@ public class AttributeResolverImpl extends AbstractServiceableComponent<Attribut
      * @param resolutionContext attribute resolution context
      */
     private void stopTimer(@Nonnull final AttributeResolutionContext resolutionContext) {
-        final ProfileRequestContext prc = profileContextStrategy.apply(resolutionContext);
+        final BaseContext prc = profileContextStrategy.apply(resolutionContext);
         if (prc != null) {
             final MetricContext timerCtx = prc.getSubcontext(MetricContext.class);
             if (timerCtx != null) {

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


More information about the commits mailing list