Ignore:
Timestamp:
2015-05-11T10:52:33+02:00 (5 years ago)
Author:
Don-vip
Message:

code style - Useless parentheses around expressions should be removed to prevent any misunderstanding

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

Legend:

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

    r8319 r8345  
    5050        String url = "trackpoints?bbox="+b.getMinLon()+","+b.getMinLat()+","+b.getMaxLon()+","+b.getMaxLat()+"&page=";
    5151        for (int i = 0;!done;++i) {
    52             progressMonitor.subTask(tr("Downloading points {0} to {1}...", i * 5000, ((i + 1) * 5000)));
     52            progressMonitor.subTask(tr("Downloading points {0} to {1}...", i * 5000, (i + 1) * 5000));
    5353            try (InputStream in = getInputStream(url+i, progressMonitor.createSubTaskMonitor(1, true))) {
    5454                if (in == null) {
  • trunk/src/org/openstreetmap/josm/io/CacheFiles.java

    r8338 r8345  
    375375        if(CacheFiles.EXPIRE_NEVER == this.expire)
    376376            return false;
    377         return (file.lastModified() < (System.currentTimeMillis() - expire*1000));
     377        return file.lastModified() < (System.currentTimeMillis() - expire*1000);
    378378    }
    379379}
  • trunk/src/org/openstreetmap/josm/io/Capabilities.java

    r8338 r8345  
    7373        Map<String, String> e = capabilities.get(element);
    7474        if (e == null) return false;
    75         return (e.get(attribute) != null);
     75        return e.get(attribute) != null;
    7676    }
    7777
  • trunk/src/org/openstreetmap/josm/io/GpxReader.java

    r8287 r8345  
    551551                String message = e.getMessage();
    552552                if (e instanceof SAXParseException) {
    553                     SAXParseException spe = ((SAXParseException)e);
     553                    SAXParseException spe = (SAXParseException)e;
    554554                    message += " " + tr("(at line {0}, column {1})", spe.getLineNumber(), spe.getColumnNumber());
    555555                }
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r8304 r8345  
    420420        CheckParameterUtil.ensureParameterNotNull(changeset, "changeset");
    421421        try {
    422             progressMonitor.beginTask((tr("Creating changeset...")));
     422            progressMonitor.beginTask(tr("Creating changeset..."));
    423423            initialize(progressMonitor);
    424424            String ret = "";
     
    430430                throw new OsmTransferException(tr("Unexpected format of ID replied by the server. Got ''{0}''.", ret));
    431431            }
    432             progressMonitor.setCustomText((tr("Successfully opened changeset {0}",changeset.getId())));
     432            progressMonitor.setCustomText(tr("Successfully opened changeset {0}",changeset.getId()));
    433433        } finally {
    434434            progressMonitor.finishTask();
  • trunk/src/org/openstreetmap/josm/io/OsmWriter.java

    r7575 r8345  
    9090    protected static final Comparator<OsmPrimitive> byIdComparator = new Comparator<OsmPrimitive>() {
    9191        @Override public int compare(OsmPrimitive o1, OsmPrimitive o2) {
    92             return (o1.getUniqueId()<o2.getUniqueId() ? -1 : (o1.getUniqueId()==o2.getUniqueId() ? 0 : 1));
     92            return o1.getUniqueId()<o2.getUniqueId() ? -1 : (o1.getUniqueId()==o2.getUniqueId() ? 0 : 1);
    9393        }
    9494    };
  • trunk/src/org/openstreetmap/josm/io/UTFInputStreamReader.java

    r7509 r8345  
    5454
    5555        if (unread > 0) {
    56             pushbackStream.unread(bom, (n - unread), unread);
     56            pushbackStream.unread(bom, n - unread, unread);
    5757        } else if (unread < -1) {
    5858            pushbackStream.unread(bom, 0, 0);
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSGrabber.java

    r7659 r8345  
    247247        }
    248248
    249         if ((!request.isReal() && !layer.hasAutoDownload())){
     249        if (!request.isReal() && !layer.hasAutoDownload()){
    250250            request.finish(State.NOT_IN_CACHE, null, null);
    251251            return true;
Note: See TracChangeset for help on using the changeset viewer.