[utilities COMMIT] /java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/xml/AttributeSupport.java

noreply at shibboleth.net noreply at shibboleth.net
Sun Jun 29 10:06:34 EDT 2014


Author: rdw
Date: Sun Jun 29 10:06:34 2014
New Revision: 610

URL: http://svn.shibboleth.net/view/utilities?rev=610&view=rev
Log:
IDP-379 Deprecate getAttributeValueAsBoolean.  Its use is alway wrong in spring parsers (and that is the only thing we use it for).

Modified:
    java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/xml/AttributeSupport.java

Modified: java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/xml/AttributeSupport.java
URL: http://svn.shibboleth.net/view/utilities/java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/xml/AttributeSupport.java?rev=610&r1=609&r2=610&view=diff
==============================================================================
--- java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/xml/AttributeSupport.java (original)
+++ java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/xml/AttributeSupport.java Sun Jun 29 10:06:34 2014
@@ -288,8 +288,10 @@
      * @param attribute attribute whose value will be converted to a boolean
      * 
      * @return boolean value of the attribute or null
-     */
-    @Nullable public static Boolean getAttributeValueAsBoolean(@Nullable final Attr attribute) {
+     * @deprecated Spring parsers should rely on translation since this happens
+     * late enough to allow property replacement.
+     */
+    @Nullable @Deprecated public static Boolean getAttributeValueAsBoolean(@Nullable final Attr attribute) {
         if (attribute == null) {
             return null;
         }



More information about the commits mailing list