Changeset 10596 in josm


Ignore:
Timestamp:
2016-07-23T00:56:53+02:00 (8 years ago)
Author:
Don-vip
Message:

see #11390, see #13120, see #13190 - sonar - squid:S1612 - Lambdas should be replaced with method references

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

Legend:

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

    r10586 r10596  
    932932            drawWorldBorders(tempG);
    933933        } catch (RuntimeException e) {
    934             throw BugReport.intercept(e).put("bounds", () -> getProjection().getWorldBoundsLatLon());
     934            throw BugReport.intercept(e).put("bounds", getProjection()::getWorldBoundsLatLon);
    935935        }
    936936
  • trunk/src/org/openstreetmap/josm/gui/MapViewState.java

    r10586 r10596  
    101101            topLeftOnScreen = position.getLocationOnScreen();
    102102        } catch (RuntimeException e) {
    103             throw BugReport.intercept(e).put("position", position).put("parent", () -> position.getParent());
     103            throw BugReport.intercept(e).put("position", position).put("parent", position::getParent);
    104104        }
    105105    }
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r10588 r10596  
    19501950                if (manager.isAvailable(getEstimatedCacheSize())) {
    19511951                    try {
    1952                         memory = manager.allocateMemory("tile source layer", getEstimatedCacheSize(), () -> new Object());
     1952                        memory = manager.allocateMemory("tile source layer", getEstimatedCacheSize(), Object::new);
    19531953                    } catch (NotEnoughMemoryException e) {
    19541954                        Main.warn("Could not allocate tile source memory", e);
Note: See TracChangeset for help on using the changeset viewer.