Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class DefaultApplicationArguments implements ApplicationArguments {

private final String[] args;

public DefaultApplicationArguments(String[] args) {
public DefaultApplicationArguments(String... args) {
Assert.notNull(args, "Args must not be null");
this.source = new Source(args);
this.args = args;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ public void getNonOptionArgs() {

@Test
public void getNoNonOptionArgs() {
ApplicationArguments arguments = new DefaultApplicationArguments(
new String[] { "--debug" });
ApplicationArguments arguments = new DefaultApplicationArguments("--debug");
assertThat(arguments.getNonOptionArgs()).isEmpty();
}

Expand Down