Skip to content

Commit eaa8674

Browse files
committed
SuperCommand.rest returns List
1 parent 6d622e2 commit eaa8674

1 file changed

Lines changed: 2 additions & 17 deletions

File tree

jbock/src/main/java/net/jbock/util/SuperResult.java

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ public SuperResult(S superCommand, List<String> rest) {
2424
this.rest = rest;
2525
}
2626

27-
/**
28-
* Returns the command instance.
29-
*
30-
* @return an instance of the SuperCommand type
31-
*
32-
* @deprecated use {@link #getCommand()}
33-
*/
34-
@Deprecated(forRemoval = true)
35-
public S result() {
36-
return superCommand;
37-
}
38-
3927
/**
4028
* Returns the command instance.
4129
*
@@ -50,12 +38,9 @@ public S getCommand() {
5038
* Returns the remaining tokens, after the SuperCommand's last parameter.
5139
*
5240
* @return remaining tokens, suitable for further parsing
53-
*
54-
* @deprecated use {@link #getRest()} instead
5541
*/
56-
@Deprecated(forRemoval = true)
57-
public String[] rest() {
58-
return rest.toArray(new String[0]);
42+
public List<String> rest() {
43+
return rest;
5944
}
6045

6146
/**

0 commit comments

Comments
 (0)