[java-identity-provider] branch maint-5.1 updated: IDP-2400 - Spring 6.2 changed MessageSource Locale parameter annotation

Scott Cantor cantor.2 at osu.edu
Tue Aug 19 16:23:03 UTC 2025


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

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

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

The following commit(s) were added to refs/heads/maint-5.1 by this push:
     new 00595a8c8 IDP-2400 - Spring 6.2 changed MessageSource Locale parameter annotation
00595a8c8 is described below

commit 00595a8c8ca02c53fad7688a4dbeded1fa986ea2
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Aug 19 12:22:33 2025 -0400

    IDP-2400 - Spring 6.2 changed MessageSource Locale parameter annotation
    
    https://shibboleth.atlassian.net/browse/IDP-2400
---
 .../idp/consent/logic/impl/MessageSourceConsentFunctionTest.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/idp-consent-impl/src/test/java/net/shibboleth/idp/consent/logic/impl/MessageSourceConsentFunctionTest.java b/idp-consent-impl/src/test/java/net/shibboleth/idp/consent/logic/impl/MessageSourceConsentFunctionTest.java
index 6ac2a13a9..29a52da0d 100644
--- a/idp-consent-impl/src/test/java/net/shibboleth/idp/consent/logic/impl/MessageSourceConsentFunctionTest.java
+++ b/idp-consent-impl/src/test/java/net/shibboleth/idp/consent/logic/impl/MessageSourceConsentFunctionTest.java
@@ -158,7 +158,7 @@ public class MessageSourceConsentFunctionTest {
     private class MockMessageSource implements MessageSource {
 
         /** {@inheritDoc} */
-        public String getMessage(@Nonnull String code, @Nullable Object[] args, @Nullable String defaultMessage, @Nonnull Locale locale) {
+        public String getMessage(@Nonnull String code, @Nullable Object[] args, @Nullable String defaultMessage, @Nullable Locale locale) {
             if (code.equals("key")) {
                 return "id";
             } else if (code.equals("id.text")) {
@@ -169,7 +169,7 @@ public class MessageSourceConsentFunctionTest {
         }
 
         /** {@inheritDoc} */
-        public @Nonnull String getMessage(@Nonnull String code, @Nullable Object[] args, @Nonnull Locale locale) throws NoSuchMessageException {
+        public @Nonnull String getMessage(@Nonnull String code, @Nullable Object[] args, @Nullable Locale locale) throws NoSuchMessageException {
             if (code.equals("key")) {
                 return "id";
             } else if (code.equals("id.text")) {
@@ -179,7 +179,7 @@ public class MessageSourceConsentFunctionTest {
         }
 
         /** {@inheritDoc} */
-        public @Nonnull String getMessage(@Nonnull MessageSourceResolvable resolvable, @Nonnull Locale locale) throws NoSuchMessageException {
+        public @Nonnull String getMessage(@Nonnull MessageSourceResolvable resolvable, @Nullable Locale locale) throws NoSuchMessageException {
             final String[] codes = resolvable.getCodes();
             assert codes != null;
             if (codes[0].equals("key")) {

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


More information about the commits mailing list