[java-identity-provider] branch main updated: Clean up deprecation warnings and annotations.
Scott Cantor
cantor.2 at osu.edu
Thu Apr 22 14:40:55 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=3bc23709d078f8b378e23fecca79669ca7234796
The following commit(s) were added to refs/heads/main by this push:
new 3bc23709d Clean up deprecation warnings and annotations.
3bc23709d is described below
commit 3bc23709d078f8b378e23fecca79669ca7234796
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Apr 22 10:40:52 2021 -0400
Clean up deprecation warnings and annotations.
---
.../shibboleth/idp/ui/context/RelyingPartyUIContext.java | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 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 6484abc44..3c68151ef 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
@@ -240,14 +240,17 @@ public final class RelyingPartyUIContext extends BaseContext {
* Set the browser languages.
*
* @param languages the languages to set
- * @deprecated use {@link #setBrowserLanguageRanges(List)}
+ *
* @return this context
+ *
+ * @deprecated use {@link #setRequestSupplier(Supplier)}
*/
@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, "setBrowserLanguages", null, "setHttpServletResponse");
+ DeprecationSupport.warnOnce(ObjectType.METHOD, "RelyingPartyUIContext.setBrowserLanguages", null,
+ "setRequestSupplier");
browserLanguages = languages.
stream().
filter(e -> e != null).
@@ -260,12 +263,17 @@ public final class RelyingPartyUIContext extends BaseContext {
* Set the browser languages.
*
* @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, "setBrowserLanguageRanges", null, "setHttpServletResponse");
+ 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