Fix typos
Closes gh-3608
This commit is contained in:
@@ -20,7 +20,7 @@ import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides access to the arguments that were used run a {@link SpringApplication}.
|
||||
* Provides access to the arguments that were used to run a {@link SpringApplication}.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
@@ -44,7 +44,7 @@ public interface ApplicationArguments {
|
||||
* Return whether the set of option arguments parsed from the arguments contains an
|
||||
* option with the given name.
|
||||
* @param name the name to check
|
||||
* @return {@code true} if the arguments contains an option with the given name
|
||||
* @return {@code true} if the arguments contain an option with the given name
|
||||
*/
|
||||
boolean containsOption(String name);
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.springframework.core.annotation.Order;
|
||||
|
||||
/**
|
||||
* Interface used to indicate that a bean should <em>run</em> when it is contained within
|
||||
* a {@link SpringApplication}. Multiple {@link ApplicationArguments} beans can be defined
|
||||
* a {@link SpringApplication}. Multiple {@link ApplicationRunner} beans can be defined
|
||||
* within the same application context and can be ordered using the {@link Ordered}
|
||||
* interface or {@link Order @Order} annotation.
|
||||
*
|
||||
|
||||
@@ -42,7 +42,7 @@ public class DefaultApplicationArgumentsTests {
|
||||
public ExpectedException thrown = ExpectedException.none();
|
||||
|
||||
@Test
|
||||
public void argumentsMustNoBeNull() throws Exception {
|
||||
public void argumentsMustNotBeNull() throws Exception {
|
||||
this.thrown.expect(IllegalArgumentException.class);
|
||||
this.thrown.expectMessage("Args must not be null");
|
||||
new DefaultApplicationArguments(null);
|
||||
|
||||
Reference in New Issue
Block a user