mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use iterable to avoid creating all commands
GitOrigin-RevId: 3c2aa4678540f00af9384497ee455d8046c50b35
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1290e08ceb
commit
024e6ae021
@@ -28,7 +28,7 @@ public abstract class JBProtocolCommand {
|
||||
@Nullable
|
||||
public static JBProtocolCommand findCommand(@Nullable String commandName) {
|
||||
if (commandName != null) {
|
||||
for (JBProtocolCommand command : EP_NAME.getExtensionList()) {
|
||||
for (JBProtocolCommand command : EP_NAME.getIterable()) {
|
||||
if (command.getCommandName().equals(commandName)) {
|
||||
return command;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user