Ignore:
Timestamp:
2016-10-08T03:02:51+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S2148 - Underscores should be used to make large numbers readable

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/Notification.java

    r10893 r11100  
    5353     * Somewhat longer message (10 s).
    5454     */
    55     public static final int TIME_LONG = Main.pref.getInteger("notification-time-long-ms", 10000);
     55    public static final int TIME_LONG = Main.pref.getInteger("notification-time-long-ms", 10_000);
    5656
    5757    /**
     
    5959     * (Make sure is still sensible to show as a notification)
    6060     */
    61     public static final int TIME_VERY_LONG = Main.pref.getInteger("notification-time-very_long-ms", 20000);
     61    public static final int TIME_VERY_LONG = Main.pref.getInteger("notification-time-very_long-ms", 20_000);
    6262
    6363    private Component content;
  • trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java

    r10716 r11100  
    657657         */
    658658        public synchronized void sort() {
    659             if (selection.size() <= Main.pref.getInteger("selection.no_sort_above", 100000)) {
    660                 boolean quick = selection.size() > Main.pref.getInteger("selection.fast_sort_above", 10000);
     659            if (selection.size() <= Main.pref.getInteger("selection.no_sort_above", 100_000)) {
     660                boolean quick = selection.size() > Main.pref.getInteger("selection.fast_sort_above", 10_000);
    661661                selection.sort(new OsmPrimitiveComparator(quick, false));
    662662            }
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadFileTask.java

    r10234 r11100  
    117117                OutputStream out = new FileOutputStream(file)
    118118            ) {
    119                 byte[] buffer = new byte[32768];
     119                byte[] buffer = new byte[32_768];
    120120                int count = 0;
    121121                long p1 = 0;
  • trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java

    r10634 r11100  
    3737    }
    3838
    39     public static final int PROGRESS_BAR_MAX = 10000;
     39    public static final int PROGRESS_BAR_MAX = 10_000;
    4040    private final Component dialogParent;
    4141
  • trunk/src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java

    r10600 r11100  
    3838
    3939    /** Ticks count used, when no other value is supplied */
    40     int DEFAULT_TICKS = 10000;
     40    int DEFAULT_TICKS = 10_000;
    4141
    4242    /**
  • trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java

    r10874 r11100  
    482482     */
    483483    public static void extendTooltipDelay(Component c) {
    484         extendTooltipDelay(c, 60000);
     484        extendTooltipDelay(c, 60_000);
    485485    }
    486486
Note: See TracChangeset for help on using the changeset viewer.