[java-opensaml] branch main updated: Adjust null contract on function.
Scott Cantor
cantor.2 at osu.edu
Fri Jan 20 20:28:52 UTC 2023
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=544ada220fba317f78b11f7cd854705153763c13
The following commit(s) were added to refs/heads/main by this push:
new 544ada220 Adjust null contract on function.
544ada220 is described below
commit 544ada220fba317f78b11f7cd854705153763c13
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Jan 20 15:28:49 2023 -0500
Adjust null contract on function.
---
.../common/profile/logic/MetadataNameIdentifierFormatStrategy.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/common/profile/logic/MetadataNameIdentifierFormatStrategy.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/common/profile/logic/MetadataNameIdentifierFormatStrategy.java
index f599de487..5ae176774 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/common/profile/logic/MetadataNameIdentifierFormatStrategy.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/common/profile/logic/MetadataNameIdentifierFormatStrategy.java
@@ -34,6 +34,7 @@ import org.opensaml.saml.saml2.metadata.SSODescriptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import net.shibboleth.shared.annotation.constraint.NonnullElements;
import net.shibboleth.shared.logic.Constraint;
/**
@@ -63,7 +64,7 @@ public class MetadataNameIdentifierFormatStrategy implements Function<ProfileReq
}
/** {@inheritDoc} */
- @Nullable public List<String> apply(@Nullable final ProfileRequestContext input) {
+ @Nonnull @NonnullElements public List<String> apply(@Nullable final ProfileRequestContext input) {
final SSODescriptor role = ssoDescriptorLookupStrategy.apply(input);
if (role != null) {
final List<String> strings = new ArrayList<>();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list