Remove unnecessary Map.get from XWM.getInsets

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 25
    • Affects Version/s: None
    • Component/s: client-libs
    • b23

      In the following code:

              if (storedInsets.get(win.getClass()) == null) {
                  storedInsets.put(win.getClass(), correctWM);
              }

      We can use Map.putIfAbsent to avoid unnecessary Map.get call

            Assignee:
            Andrey Turbanov
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: