# Messages
private var messages = new Array[Message]
- private var message_sorter = new ComparableSorter[Message]
+ private var message_sorter: Comparator = default_comparator
# Output all current stacked messages.
# If some errors occurred, exits the program.
addn " COMPREPLY=()"
addn " cur=\"$\{COMP_WORDS[COMP_CWORD]\}\""
addn " prev=\"$\{COMP_WORDS[COMP_CWORD-1]\}\""
- if option_names != null then
+ if not option_names.is_empty then
addn " opts=\"{option_names.join(" ")}\""
addn " if [[ $\{cur\} == -* ]] ; then"
addn " COMPREPLY=( $(compgen -W \"$\{opts\}\" -- $\{cur\}) )"