File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/com/datasiqn/commandcore/argument Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11
11
*/
12
12
public class StringArguments implements Arguments {
13
13
private final List <String > allArguments ;
14
+ private final String stringArguments ;
14
15
15
16
/**
16
17
* Creates a new {@code ListArguments}
17
18
* @param args The arguments in a string list
18
19
*/
19
20
public StringArguments (List <String > args ) {
20
21
allArguments = args ;
22
+ stringArguments = String .join (" " , allArguments );
21
23
}
22
24
23
25
@ Override
@@ -39,7 +41,7 @@ public int size() {
39
41
40
42
@ Override
41
43
public @ NotNull ArgumentReader asReader () {
42
- return new StringArgumentReader (String . join ( " " , allArguments ) );
44
+ return new StringArgumentReader (stringArguments );
43
45
}
44
46
45
47
private void checkBounds (int i ) {
You can’t perform that action at this time.
0 commit comments