Browse Source

Revise ApplicationContext#getId() nullability to non-null

Closes gh-35925
pull/35933/head
Juergen Hoeller 3 weeks ago
parent
commit
3b90311c17
  1. 4
      spring-context/src/main/java/org/springframework/context/ApplicationContext.java

4
spring-context/src/main/java/org/springframework/context/ApplicationContext.java

@ -61,9 +61,9 @@ public interface ApplicationContext extends EnvironmentCapable, ListableBeanFact
/** /**
* Return the unique id of this application context. * 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. * Return a name for the deployed application that this context belongs to.

Loading…
Cancel
Save