diff --git a/src/test/java/picocli/CommandLineModelTest.java b/src/test/java/picocli/CommandLineModelTest.java index 74ec762d9..bfb8f23a8 100644 --- a/src/test/java/picocli/CommandLineModelTest.java +++ b/src/test/java/picocli/CommandLineModelTest.java @@ -1646,8 +1646,7 @@ public void testSubcommandNameNotOverwrittenWhenAddedToParent() { @Test public void testInject_AnnotatedFieldInjected() { class Injected { - @PicoInject - CommandSpec commandSpec; + @PicoInject CommandSpec commandSpec; @Parameters String[] params; } Injected injected = new Injected(); @@ -1660,8 +1659,7 @@ class Injected { @Test public void testInject_AnnotatedFieldInjectedForSubcommand() { class Injected { - @PicoInject - CommandSpec commandSpec; + @PicoInject CommandSpec commandSpec; @Parameters String[] params; } Injected injected = new Injected(); @@ -1680,8 +1678,7 @@ class Injected { @Test public void testInject_FieldMustBeCommandSpec() { class Injected { - @PicoInject - CommandLine commandLine; + @PicoInject CommandLine commandLine; @Parameters String[] params; } Injected injected = new Injected();