Changeset 10941 in josm for trunk


Ignore:
Timestamp:
2016-09-03T12:52:26+02:00 (3 years ago)
Author:
Don-vip
Message:

sonar - squid:S1612 - Lambdas should be replaced with method references

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

Legend:

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

    r10940 r10941  
    862862            }
    863863        } catch (RuntimeException e) {
    864             BugReport.intercept(e).put("center", () -> getCenter()).warn();
     864            BugReport.intercept(e).put("center", this::getCenter).warn();
    865865            return;
    866866        }
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r10836 r10941  
    14341434         */
    14351435        private List<Tile> allExistingTiles() {
    1436             return allTiles(p -> getTile(p));
     1436            return allTiles(AbstractTileSourceLayer.this::getTile);
    14371437        }
    14381438
    14391439        private List<Tile> allTilesCreate() {
    1440             return allTiles(p -> getOrCreateTile(p));
     1440            return allTiles(AbstractTileSourceLayer.this::getOrCreateTile);
    14411441        }
    14421442
Note: See TracChangeset for help on using the changeset viewer.