[java-opensaml] branch main updated: Fix javadocs and an incorrect annotation.

Codeberg noreply at shibboleth.net
Tue Apr 7 16:58:31 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-opensaml.

View the commit online:
https://codeberg.org/Shibboleth/java-opensaml/commit/2246260539a9d0f3aeefbe845819e409471d0c80

The following commit(s) were added to refs/heads/main by this push:
     new 224626053 Fix javadocs and an incorrect annotation.
224626053 is described below

commit 2246260539a9d0f3aeefbe845819e409471d0c80
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Apr 7 12:58:20 2026 -0400

    Fix javadocs and an incorrect annotation.
---
 .../src/main/java/org/opensaml/messaging/context/BaseContext.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/opensaml-messaging-api/src/main/java/org/opensaml/messaging/context/BaseContext.java b/opensaml-messaging-api/src/main/java/org/opensaml/messaging/context/BaseContext.java
index d6081eebc..c7d0e14fc 100644
--- a/opensaml-messaging-api/src/main/java/org/opensaml/messaging/context/BaseContext.java
+++ b/opensaml-messaging-api/src/main/java/org/opensaml/messaging/context/BaseContext.java
@@ -132,7 +132,7 @@ public abstract class BaseContext implements Iterable<BaseContext> {
      * @param autocreate flag indicating whether the subcontext instance should be auto-created
      * 
      * @return the held instance of the class, or null
-     * @deprecated use {@link #ensureSubcontext(Class)} or {#link {@link #getSubcontext(Class)}.
+     * @deprecated use {@link #ensureSubcontext(Class)} or {@link #getSubcontext(Class)}.
      */ 
     @Deprecated(since = "5.0.0", forRemoval = false)
     @Nullable public <T extends BaseContext> T getSubcontext(@Nonnull final Class<T> clazz, final boolean autocreate) {
@@ -175,7 +175,7 @@ public abstract class BaseContext implements Iterable<BaseContext> {
      * 
      * @return the held instance of the class, or null
      */ 
-    @Nullable public BaseContext ensureSubcontext(@Nonnull @NotEmpty final String className) {
+    @Nonnull public BaseContext ensureSubcontext(@Nonnull @NotEmpty final String className) {
         final BaseContext newContext = getSubcontext(className, true);
         if (newContext == null) {
             throw new IllegalStateException("Context of type '" + className + "' did not exist or was not created");
@@ -195,7 +195,7 @@ public abstract class BaseContext implements Iterable<BaseContext> {
      * @param autocreate flag indicating whether the subcontext instance should be auto-created
      * 
      * @return the held instance of the class, or null
-     * @deprecated use {@link #ensureSubcontext(String)} or {#link {@link #getSubcontext(String)}.
+     * @deprecated use {@link #ensureSubcontext(String)} or {@link #getSubcontext(String)}.
      */ 
     @Deprecated(since = "5.0.0", forRemoval = false)
     @Nullable public BaseContext getSubcontext(@Nonnull @NotEmpty final String className, final boolean autocreate) {

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


More information about the commits mailing list