Changeset 10762 in josm for trunk


Ignore:
Timestamp:
2016-08-07T17:57:24+02:00 (4 years ago)
Author:
Don-vip
Message:

sonar - squid:UselessParenthesesCheck

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java

    r10723 r10762  
    200200    private static IDiskCacheAttributes getDiskCacheAttributes(int maxDiskObjects, String cachePath, String cacheName) {
    201201        IDiskCacheAttributes ret;
    202         removeStaleFiles(cachePath + File.separator + cacheName, (USE_BLOCK_CACHE.get() ? "_INDEX_v2" : "_BLOCK_v2"));
     202        removeStaleFiles(cachePath + File.separator + cacheName, USE_BLOCK_CACHE.get() ? "_INDEX_v2" : "_BLOCK_v2");
    203203        cacheName = cacheName + (USE_BLOCK_CACHE.get() ? "_BLOCK_v2" : "_INDEX_v2");
    204204
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/CombinePrimitiveResolverDialog.java

    r10638 r10762  
    597597        String values = normalizedTags.getValues(key)
    598598                .stream()
    599                 .map(x -> ((x == null || x.isEmpty()) ? tr("<i>missing</i>") : x))
     599                .map(x -> (x == null || x.isEmpty()) ? tr("<i>missing</i>") : x)
    600600                .collect(Collectors.joining(tr(", ")));
    601601        return tr("{0} ({1})", key, values);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerListTransferHandler.java

    r10606 r10762  
    8383            LayerListModel tableModel = (LayerListModel) ((JTable) support.getComponent()).getModel();
    8484
    85             LayerTransferable.Data layers = ((LayerTransferable.Data) support.getTransferable()
    86                     .getTransferData(LayerTransferable.LAYER_DATA));
     85            LayerTransferable.Data layers = (LayerTransferable.Data) support.getTransferable()
     86                    .getTransferData(LayerTransferable.LAYER_DATA);
    8787
    8888            int dropLocation;
Note: See TracChangeset for help on using the changeset viewer.