[java-support] branch master updated: IDP-1177 - Centralize deprecation warnings through dedicated function
Scott Cantor
cantor.2 at osu.edu
Fri Jun 2 17:22:47 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=6a06fe5e02d1191a807e4cc4a2c4a569dd7bf246
The following commit(s) were added to refs/heads/master by this push:
new 6a06fe5 IDP-1177 - Centralize deprecation warnings through dedicated function
6a06fe5 is described below
commit 6a06fe5e02d1191a807e4cc4a2c4a569dd7bf246
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Jun 2 17:22:45 2017 -0400
IDP-1177 - Centralize deprecation warnings through dedicated function
https://issues.shibboleth.net/jira/browse/IDP-1177
Use a static/short log category for warnings.
---
.../utilities/java/support/primitive/DeprecationSupport.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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 04527c6..d012115 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
@@ -33,8 +33,11 @@ import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
/** Helper methods for reporting usage of deprecated features. */
public final class DeprecationSupport {
+ /** Log category name for warnings. */
+ @Nonnull @NotEmpty public static final String LOG_CATEGORY = "DEPRECATED";
+
/** Class logger. */
- @Nonnull private static final Logger LOG = LoggerFactory.getLogger(DeprecationSupport.class);
+ @Nonnull private static final Logger LOG = LoggerFactory.getLogger(LOG_CATEGORY);
/** Tracks issued warnings. */
@Nonnull @NonnullElements private static final Set<String> WARNED_SET = new HashSet<>();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list