[java-identity-provider] 02/02: IDP-1464 Add deprecation warning on new deprecation.
Rod Widdowson
rdw at steadingsoftware.com
Tue Jun 11 09:45:34 EDT 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=ae6a599799d8fd612b8b29d0d8b0f4bc15695c57
commit ae6a599799d8fd612b8b29d0d8b0f4bc15695c57
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Jun 11 14:44:58 2019 +0100
IDP-1464 Add deprecation warning on new deprecation.
https://issues.shibboleth.net/jira/browse/IDP-1464
https://issues.shibboleth.net/jira/browse/IDP-1464
---
.../java/net/shibboleth/idp/ui/context/RelyingPartyUIContext.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/idp-ui/src/main/java/net/shibboleth/idp/ui/context/RelyingPartyUIContext.java b/idp-ui/src/main/java/net/shibboleth/idp/ui/context/RelyingPartyUIContext.java
index a5f6b6b..ef281a6 100644
--- a/idp-ui/src/main/java/net/shibboleth/idp/ui/context/RelyingPartyUIContext.java
+++ b/idp-ui/src/main/java/net/shibboleth/idp/ui/context/RelyingPartyUIContext.java
@@ -48,7 +48,9 @@ import net.shibboleth.idp.saml.metadata.OrganizationUIInfo;
import net.shibboleth.utilities.java.support.annotation.constraint.NonnullElements;
import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
import net.shibboleth.utilities.java.support.logic.Constraint;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
import net.shibboleth.utilities.java.support.primitive.StringSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
/**
* The context which carries the user interface information.
@@ -192,6 +194,8 @@ public final class RelyingPartyUIContext extends BaseContext {
*/
@Nonnull public RelyingPartyUIContext setBrowserLanguages(@Nonnull @NonnullElements final List<String> languages) {
Constraint.isNotNull(languages, "Language List cannot be null");
+ // The replacement was created in V4.0
+ DeprecationSupport.warnOnce(ObjectType.METHOD, "setBrowserLanguages", null, "setBrowserLanguageRanges");
browserLanguages = languages.
stream().
filter(e -> e != null).
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list