Skip to content

Commit

Permalink
Removed unnecessary package name from the import
Browse files Browse the repository at this point in the history
  • Loading branch information
Despical committed Jul 25, 2024
1 parent 86ae20c commit 1b159c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Object[] getParameterArray(Method method, CommandArguments commandArgumen
String value = ((Param) annotation).value();

if (!customParametersMap.containsKey(value)) {
throw new me.despical.commandframework.exceptions.CommandException("Custom parameter (type: {0}, value: {1}) is requested but return function is not found!", simpleName, value);
throw new CommandException("Custom parameter (type: {0}, value: {1}) is requested but return function is not found!", simpleName, value);
}

methodParameters[i] = customParametersMap.get(value).apply(commandArguments);
Expand All @@ -73,7 +73,7 @@ public Object[] getParameterArray(Method method, CommandArguments commandArgumen
try {
methodParameters[i] = clazz.getMethod("valueOf", String.class).invoke(null, defaultValue);
} catch (Exception exception) {
throw new me.despical.commandframework.exceptions.CommandException("Static method {0}#valueOf(String) does not exist!", clazz.getSimpleName());
throw new CommandException("Static method {0}#valueOf(String) does not exist!", clazz.getSimpleName());
}

continue outer_loop;
Expand Down

0 comments on commit 1b159c5

Please sign in to comment.