Skip to content

Commit

Permalink
Update ErlangConsole methods and modifiers
Browse files Browse the repository at this point in the history
Refactor ErlangConsoleActionPromoter and ErlangConsoleCommandLineState classes by making the notEnter method static and adding the @NotNull annotation to the getConsole method. This improves code quality and readability while ensuring non-null values for the console.
  • Loading branch information
ignatov committed May 3, 2023
1 parent 02679ab commit f4155b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public int compare(@NotNull AnAction o1, @NotNull AnAction o2) {
return notEnter(o1) ? notEnter(o2) ? 0 : -1 : notEnter(o2) ? 1 : 0;
}

private boolean notEnter(AnAction o) {
private static boolean notEnter(AnAction o) {
return !(o instanceof EnterAction);
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public ErlangConsoleCommandLineState(@NotNull ErlangConsoleRunConfiguration conf
myConfig = config;
TextConsoleBuilder consoleBuilder = new TextConsoleBuilderImpl(myConfig.getProject()) {
@Override
public ConsoleView getConsole() {
public @NotNull ConsoleView getConsole() {
ErlangConsoleView consoleView = new ErlangConsoleView(myConfig.getProject());
ErlangConsoleUtil.attachFilters(myConfig.getProject(), consoleView);
return consoleView;
Expand Down

0 comments on commit f4155b0

Please sign in to comment.