Affects: all versions

ConfigurableApplicationContext.refresh():

    /**
     * Load or refresh the persistent representation of the configuration,
     * which might an XML file, properties file, or relational database schema.
     * <p>As this is a startup method, it should destroy already created singletons
     * if it fails, to avoid dangling resources. In other words, after invocation
     * of that method, either all or no singletons at all should be instantiated.
     * @throws BeansException if the bean factory could not be initialized
     * @throws IllegalStateException if already initialized and multiple refresh
     * attempts are not supported
     */
    void refresh() throws BeansException, IllegalStateException;

I found this "which might an XML file" weired, shouldn't it be "which might be an XML file" ?


Comment From: sbrannen

Thanks for pointing out the grammatical error. I've revised the Javadoc in b769b73960c904269ea7873cfa5a82c00e28a6a8.