File tree 1 file changed +4
-6
lines changed
spring-shell-samples/src/main/java/org/springframework/shell/samples/e2e
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .springframework .shell .samples .e2e ;
17
17
18
- import java .util .function .Supplier ;
19
-
20
18
import org .springframework .context .annotation .Bean ;
21
19
import org .springframework .shell .command .CommandRegistration ;
22
20
import org .springframework .shell .standard .ShellComponent ;
@@ -33,8 +31,8 @@ public String testUnrecognisedOptionNoOtherAnnotation(
33
31
}
34
32
35
33
@ Bean
36
- public CommandRegistration testUnrecognisedOptionNoOtherRegistration (Supplier < CommandRegistration . Builder > builder ) {
37
- return builder . get ()
34
+ public CommandRegistration testUnrecognisedOptionNoOtherRegistration () {
35
+ return CommandRegistration . builder ()
38
36
.command (REG , "unrecognised-option-noother" )
39
37
.group (GROUP )
40
38
.withTarget ()
@@ -53,8 +51,8 @@ public String testUnrecognisedOptionWithRequiredAnnotation(
53
51
}
54
52
55
53
@ Bean
56
- public CommandRegistration testUnrecognisedOptionWithRequiredRegistration (Supplier < CommandRegistration . Builder > builder ) {
57
- return builder . get ()
54
+ public CommandRegistration testUnrecognisedOptionWithRequiredRegistration () {
55
+ return CommandRegistration . builder ()
58
56
.command (REG , "unrecognised-option-withrequired" )
59
57
.group (GROUP )
60
58
.withOption ()
You can’t perform that action at this time.
0 commit comments