Пример #1
0
 @Override
 public void saveHistory(String commandLine, String result) {
   if (commandHistory != null) commandHistory.saveHistory(commandLine, result);
 }
Пример #2
0
 @Override
 public String showHistory() {
   return commandHistory == null ? "history disabled" : commandHistory.showHistory();
 }