Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356175

Remove unnecessary Map.get from XWM.getInsets

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • None
    • client-libs
    • In Review

      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

            aturbanov Andrey Turbanov
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: