[java-support] branch master updated: IDP-1177 - Centralize deprecation warnings through dedicated function

Scott Cantor cantor.2 at osu.edu
Fri Jun 2 17:23:45 EDT 2017


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

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

View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=74b74d4d4bd9c49ff2e5da0a77af727de63790f5

The following commit(s) were added to refs/heads/master by this push:
       new  74b74d4   IDP-1177 - Centralize deprecation warnings through dedicated function
74b74d4 is described below

commit 74b74d4d4bd9c49ff2e5da0a77af727de63790f5
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Jun 2 17:23:43 2017 -0400

    IDP-1177 - Centralize deprecation warnings through dedicated function
    
    https://issues.shibboleth.net/jira/browse/IDP-1177
    
    Remove duplication with log category.
---
 .../utilities/java/support/primitive/DeprecationSupport.java      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/net/shibboleth/utilities/java/support/primitive/DeprecationSupport.java b/src/main/java/net/shibboleth/utilities/java/support/primitive/DeprecationSupport.java
index d012115..2322f38 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/primitive/DeprecationSupport.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/primitive/DeprecationSupport.java
@@ -109,18 +109,18 @@ public final class DeprecationSupport {
             @Nullable final String context, @Nullable final String replacement) {
         
         if (context != null && replacement != null) {
-            LOG.warn("DEPRECATED {} '{}', ({}):"
+            LOG.warn("{} '{}', ({}):"
                         + " This will be removed in the next major version of this software; replacement is {}",
                     type, name, context, replacement);
         } else if (context != null) {
-            LOG.warn("DEPRECATED {} '{}', ({}): This will be removed in the next major version of this software",
+            LOG.warn("{} '{}', ({}): This will be removed in the next major version of this software",
                 type, name, context);
         } else if (replacement != null) {
-            LOG.warn("DEPRECATED {} '{}':"
+            LOG.warn("{} '{}':"
                     + " This will be removed in the next major version of this software; replacement is {}",
                 type, name, replacement);
         } else {
-            LOG.warn("DEPRECATED {} '{}': This will be removed in the next major version of this software.",
+            LOG.warn("{} '{}': This will be removed in the next major version of this software.",
                     type, name);
         }
     }

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


More information about the commits mailing list