pingex
/
DiscordBot
Archived
1
0
Fork 0

Very small changes.

master
Pingex aka Raphaël 9 years ago
parent f5e396cfe0
commit 0074f64537

@ -237,6 +237,7 @@ class CommandDispatcher
* Gets the command list (cloned to avoid modifications) * Gets the command list (cloned to avoid modifications)
* @return The current cloned command list * @return The current cloned command list
*/ */
@SuppressWarnings("unchecked")
public HashMap<String, InvokableMethod> getCommandList() public HashMap<String, InvokableMethod> getCommandList()
{ {
return (HashMap<String, InvokableMethod>) commandList.clone(); return (HashMap<String, InvokableMethod>) commandList.clone();
@ -246,6 +247,7 @@ class CommandDispatcher
* Gets the shorthands list (cloned to avoid edits) * Gets the shorthands list (cloned to avoid edits)
* @return The current cloned short list * @return The current cloned short list
*/ */
@SuppressWarnings("unchecked")
public HashMap<String, String> getShortList() public HashMap<String, String> getShortList()
{ {
return (HashMap<String, String>) shortList.clone(); return (HashMap<String, String>) shortList.clone();

@ -11,8 +11,12 @@ import java.util.HashMap;
* @author Raphael "Pingex" NAAS * @author Raphael "Pingex" NAAS
*/ */
@Controllable(name="internal") @Controllable(name="internal")
public class InternalCommandsModule extends AbstractModule class InternalCommandsModule extends AbstractModule
{ {
/**
* Constructor doing all the basic stuff, like registering as a Listener to Discord, getting a logger, etc.
* @param client Discord Client instance used to register self.
*/
public InternalCommandsModule(IDiscordClient client) public InternalCommandsModule(IDiscordClient client)
{ {
super(client); super(client);