[java-identity-provider COMMIT] /trunk/idp-attribute-filter-impl/src/main/java/net/shibboleth/idp/attribute/filter/im...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Jul 18 12:16:42 EDT 2013
Author: rdw
Date: Thu Jul 18 12:16:41 2013
New Revision: 4596
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4596&view=rev
Log:
IDP 283 - fix based on feedback.
Modified:
trunk/idp-attribute-filter-impl/src/main/java/net/shibboleth/idp/attribute/filter/impl/matcher/AttributeValueStringMatcher.java
Modified: trunk/idp-attribute-filter-impl/src/main/java/net/shibboleth/idp/attribute/filter/impl/matcher/AttributeValueStringMatcher.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-attribute-filter-impl/src/main/java/net/shibboleth/idp/attribute/filter/impl/matcher/AttributeValueStringMatcher.java?rev=4596&r1=4595&r2=4596&view=diff
==============================================================================
--- trunk/idp-attribute-filter-impl/src/main/java/net/shibboleth/idp/attribute/filter/impl/matcher/AttributeValueStringMatcher.java (original)
+++ trunk/idp-attribute-filter-impl/src/main/java/net/shibboleth/idp/attribute/filter/impl/matcher/AttributeValueStringMatcher.java Thu Jul 18 12:16:41 2013
@@ -42,11 +42,10 @@
}
if (value instanceof StringAttributeValue) {
- final StringAttributeValue stringValue = (StringAttributeValue) value;
- return super.stringCompare(stringValue.getValue());
+ return super.stringCompare(((StringAttributeValue)value).getValue());
} else {
- final String valueAsString = ((AttributeValue) value).getValue().toString();
+ final String valueAsString = value.getValue().toString();
log.warn("{} Object supplied to StringAttributeValue comparison"
+ " was of class {}, not StringAttributeValue, comparing with {}", new Object[] {
getLogPrefix(), value.getClass().getName(), valueAsString,});
More information about the commits
mailing list