Created
September 28, 2015 17:52
-
-
Save anna-is-cute/07d5cfcd902966ee5e25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Nullable | |
public final BaseCommand getCommand(@NotNull final String name) { | |
Intrinsics.checkParameterIsNotNull(name, "name"); | |
BaseCommand commandByAlias; | |
if ((commandByAlias = this.commands.get(name)) == null) { | |
commandByAlias = this.getCommandByAlias(name); | |
} | |
return commandByAlias; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public fun getCommand(name: String): BaseCommand? = this.commands[name] ?: this.getCommandByAlias(name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment