Revise ApplicationContext#getId() nullability to non-null

Closes gh-35925
This commit is contained in:
Juergen Hoeller
2025-11-28 13:58:11 +01:00
parent 946fc65712
commit 3b90311c17
@@ -61,9 +61,9 @@ public interface ApplicationContext extends EnvironmentCapable, ListableBeanFact
/**
* Return the unique id of this application context.
* @return the unique id of the context, or {@code null} if none
* @return the unique id of the context (never null as of 7.0.2)
*/
@Nullable String getId();
String getId();
/**
* Return a name for the deployed application that this context belongs to.