[java-identity-provider] branch main updated: Accidental deprecation/warning on setBrowserLanguageRanges method.

Scott Cantor cantor.2 at osu.edu
Thu Apr 22 14:53:30 UTC 2021


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

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=740ba8d0beb0e79263f9f2e60106ba114de797dd

The following commit(s) were added to refs/heads/main by this push:
       new  740ba8d0b Accidental deprecation/warning on setBrowserLanguageRanges method.
740ba8d0b is described below

commit 740ba8d0beb0e79263f9f2e60106ba114de797dd
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Apr 22 10:53:27 2021 -0400

    Accidental deprecation/warning on setBrowserLanguageRanges method.
---
 .../net/shibboleth/idp/ui/context/RelyingPartyUIContext.java  | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

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 3c68151ef..a33d7be9a 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
@@ -243,14 +243,13 @@ public final class RelyingPartyUIContext extends BaseContext {
      * 
      * @return this context
      * 
-     * @deprecated use {@link #setRequestSupplier(Supplier)}
+     * @deprecated use {@link #setBrowserLanguageRanges(List)}
      */
     @Deprecated(since="4.0.0", forRemoval=true)
     @Nonnull public RelyingPartyUIContext setBrowserLanguages(@Nonnull @NonnullElements final List<String> languages) {
         Constraint.isNotNull(languages, "Language List cannot be null");
-        // The replacement was created in V4.1.1
         DeprecationSupport.warnOnce(ObjectType.METHOD, "RelyingPartyUIContext.setBrowserLanguages", null,
-                "setRequestSupplier");
+                "setBrowserLanguageRanges");
         browserLanguages = languages.
                 stream().
                 filter(e -> e != null).
@@ -265,15 +264,9 @@ public final class RelyingPartyUIContext extends BaseContext {
      * @param ranges the languages to set
      * 
      * @return this context
-     * 
-     * @deprecated use {@link #setRequestSupplier(Supplier)}
      */
-    @Deprecated(since="4.1.1", forRemoval=true)
     @Nonnull public RelyingPartyUIContext setBrowserLanguageRanges(
             @Nonnull @NonnullElements final List<LanguageRange> ranges) {
-        // The replacement was created in V4.1.1
-        DeprecationSupport.warnOnce(ObjectType.METHOD, "RelyingPartyUIContext.setBrowserLanguageRanges", null,
-                "setRequestSupplier");
         browserLanguages = Constraint.isNotNull(ranges, "Language Range cannot be null");
         return this;
     }

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


More information about the commits mailing list