Improve lazy computation in BreakIteratorResourceBundle and related classes

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: core-libs

      The `Set` exposed via the lazy computation:

                          ResourceBundle info = getBreakIteratorInfo();
                          Set<String> k = info.keySet();
                          k.removeAll(NON_DATA_KEYS);

      is using a mutable set. Also, the laziness could be better handled by Stable Values rather than a double-checked locking solution.

            Assignee:
            Per-Ake Minborg
            Reporter:
            Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: