Changes between Initial Version and Version 1 of Ticket #17169, comment 1


Ignore:
Timestamp:
2019-01-04T13:09:49+01:00 (5 years ago)
Author:
michael2402

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17169, comment 1

    initial v1  
    44(1) Make availableOptions a LinkedHashMap
    55(2) Use `xxx = availableOptions.entrySet().stream().filter(entry -> entry.getValue().equals(def)).map(entry -> entry.getKey()).findFirst().orElse("?")`
     6
     7This will then always find the long option that was registered first.