Ignore:
Timestamp:
2023-08-09T15:30:01+02:00 (9 months ago)
Author:
taylor.smock
Message:

Fix #22832: Code cleanup and some simplification, documentation fixes (patch by gaben)

There should not be any functional changes in this patch; it is intended to do
the following:

  • Simplify and cleanup code (example: Arrays.asList(item) -> Collections.singletonList(item))
  • Fix typos in documentation (which also corrects the documentation to match what actually happens, in some cases)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/GuiSizesHelper.java

    r16486 r18801  
    1111 * Support class to handle size information of Gui elements
    1212 * This is needed, because display resolution may vary a lot and a common set
    13  * of sizes wont work for all users alike.
     13 * of sizes won't work for all users alike.
    1414 * @since 12682 (moved from {@code gui.util} package)
    1515 * @since 10358
     
    2222
    2323    /** cache value for screen resolution */
    24     private static float screenDPI = -1;
     24    private static volatile float screenDPI = -1;
    2525
    2626    /**
Note: See TracChangeset for help on using the changeset viewer.