[java-identity-provider] branch master updated: IDP-1121 Deprecated the V2 style scripted attributes.

Rod Widdowson rdw at steadingsoftware.com
Fri Feb 8 09:51:32 EST 2019


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

rdw 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=7ed31cd3bb64c2cede189c46f226e751fe85f792

The following commit(s) were added to refs/heads/master by this push:
       new  7ed31cd   IDP-1121  Deprecated the V2 style scripted attributes.
7ed31cd is described below

commit 7ed31cd3bb64c2cede189c46f226e751fe85f792
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Fri Feb 8 14:50:32 2019 +0000

    IDP-1121  Deprecated the V2 style scripted attributes.
    
    https://issues.shibboleth.net/jira/browse/IDP-1121
---
 .../shibboleth/common/attribute/provider/BasicAttribute.java     | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/idp-attribute-resolver-impl/src/main/java/edu/internet2/middleware/shibboleth/common/attribute/provider/BasicAttribute.java b/idp-attribute-resolver-impl/src/main/java/edu/internet2/middleware/shibboleth/common/attribute/provider/BasicAttribute.java
index 60b4b9a..ee587af 100644
--- a/idp-attribute-resolver-impl/src/main/java/edu/internet2/middleware/shibboleth/common/attribute/provider/BasicAttribute.java
+++ b/idp-attribute-resolver-impl/src/main/java/edu/internet2/middleware/shibboleth/common/attribute/provider/BasicAttribute.java
@@ -17,11 +17,10 @@
 
 package edu.internet2.middleware.shibboleth.common.attribute.provider;
 
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
 import net.shibboleth.idp.attribute.IdPAttribute;
 import net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedIdPAttributeImpl;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
 
 /**
  * A class which is here solely to provide compatibility for V2 scripted attribute definitions. The assumption is that a
@@ -29,8 +28,6 @@ import net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedIdPAttributeImpl;
  */
 public class BasicAttribute extends ScriptedIdPAttributeImpl {
 
-    /** Log. */
-    private Logger log = LoggerFactory.getLogger(ScriptedIdPAttributeImpl.class);
 
     /**
      * Constructor.
@@ -39,6 +36,6 @@ public class BasicAttribute extends ScriptedIdPAttributeImpl {
      */
     public BasicAttribute(final String id) {
         super(new IdPAttribute(id), "Scripted Attribute Definition: ");
-        log.info("{}  Use of V2 emulated class \"BasicAttribute\", consider replacing this code", getLogPrefix());
+        DeprecationSupport.warnOnce(ObjectType.CLASS, "edu.internet2.middleware.shibboleth.common.attribute.provider.BasicAttribute", null, "IdPAttribute");
     }
 }

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


More information about the commits mailing list