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

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

Location:
trunk/src/org/openstreetmap/josm/io
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java

    r10632 r11100  
    207207        CheckParameterUtil.ensureThat(noteLimit > 0, "Requested note limit is less than 1.");
    208208        // see result_limit in https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/notes_controller.rb
    209         CheckParameterUtil.ensureThat(noteLimit <= 10000, "Requested note limit is over API hard limit of 10000.");
     209        CheckParameterUtil.ensureThat(noteLimit <= 10_000, "Requested note limit is over API hard limit of 10000.");
    210210        CheckParameterUtil.ensureThat(daysClosed >= -1, "Requested note limit is less than -1.");
    211211        String url = "notes?limit=" + noteLimit + "&closed=" + daysClosed + "&bbox=" + lon1 + ',' + lat1 + ',' + lon2 + ',' + lat2;
  • trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java

    r10378 r11100  
    9797            return 0;
    9898        }
    99         if (port <= 0 || port > 65535) {
     99        if (port <= 0 || port > 65_535) {
    100100            Main.error(tr("Illegal port number in preference ''{0}''. Got {1}.", property, port));
    101101            Main.error(tr("The proxy will not be used."));
  • trunk/src/org/openstreetmap/josm/io/NoteReader.java

    r10378 r11100  
    7878            case "osm-notes":
    7979                parseMode = NoteParseMode.DUMP;
    80                 notes = new ArrayList<>(10000);
     80                notes = new ArrayList<>(10_000);
    8181                return;
    8282            }
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpsServer.java

    r11096 r11100  
    140140        X509CertInfo info = new X509CertInfo();
    141141        Date from = new Date();
    142         Date to = new Date(from.getTime() + days * 86400000L);
     142        Date to = new Date(from.getTime() + days * 86_400_000L);
    143143        CertificateValidity interval = new CertificateValidity(from, to);
    144144        BigInteger sn = new BigInteger(64, new SecureRandom());
Note: See TracChangeset for help on using the changeset viewer.