diff --git a/spring-context/src/main/java/org/springframework/context/ApplicationContext.java b/spring-context/src/main/java/org/springframework/context/ApplicationContext.java index 32bea4d2ab4..c8c408444df 100644 --- a/spring-context/src/main/java/org/springframework/context/ApplicationContext.java +++ b/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 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.