Skip to content

Commit 9e2e5ae

Browse files
added missing @OverRide annotations
1 parent 3a17f5b commit 9e2e5ae

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/java/com/datasiqn/commandcore/arguments/ListArguments.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ public ListArguments(List<String> args) {
1212
allArguments = args;
1313
}
1414

15+
@Override
1516
public int size() {
1617
return allArguments.size();
1718
}
1819

20+
@Override
1921
public @NotNull <T> Result<T, String> get(int i, ArgumentType<T> type) {
2022
if (i >= allArguments.size()) throw new IllegalArgumentException("i is greater than total length of arguments");
2123
return type.parse(allArguments.get(i));

src/main/java/com/datasiqn/commandcore/commands/context/impl/CommandContextImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ public CommandContextImpl(CommandSource source, Arguments arguments) {
1414
this.arguments = arguments;
1515
}
1616

17+
@Override
1718
public @NotNull CommandSource getSource() {
1819
return source;
1920
}
2021

22+
@Override
2123
public @NotNull Arguments getArguments() {
2224
return arguments;
2325
}

0 commit comments

Comments
 (0)